slickR | slick carousel htmlwidget for R | Data Visualization library
kandi X-RAY | slickR Summary
kandi X-RAY | slickR Summary
We are happy to bring the slick JavaScript library to R. It is self described as "the last carousel you'll ever need". This carousel is based on putting the elements of the carousel in a div HTML tag. This makes the carousel very versatile in what can be placed inside. Regular objects that are placed in a carousel can be for example: images, plots, tables, gifs, videos and objects embedded in iframes. This tool helps review multiple outputs in an efficient manner and saves much needed space in documents and Shiny applications, while creating a user friendly experience. These carousels can be used directly from the R console, from RStudio, in Shiny apps and R Markdown documents.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Initialize the slider
- Attach a resize event .
- Loads the responsive image .
- Load all images
- Information about each element and dimensions .
- Build the DOM tree
- Updates the dots height of the given element .
- This function loads an image
- parse the rules
- Converts px to px in pixels .
slickR Key Features
slickR Examples and Code Snippets
Community Discussions
Trending Discussions on slickR
QUESTION
I would like to dynamically add a carousel of images within a shiny dashboard based on a filtered list. I have tried the shinydashboardPlus package as well as the slickR package but can't seem to get either of them to work.
Tried my best to reproduce a short example using shinydashboardPlus. Not opposed to using other packages.
...ANSWER
Answered 2021-Nov-02 at 23:13It seems the problem is how you are building the list of items
. Your images()
reactive variable already has the image tags. So you don't need to use tags$img
again when you build the list. Also you using the Map()
function but you don't seem to actually be mapping over any values. Try
QUESTION
I can successfully move the "next" button for slickR's carousel. However, when I use the similar method to move the "previous" button it does not work. The action and the mouseover no longer work. Why is this? How can I move the "prev" button and maintain full functionality?
The documentation refers to an element in settings called, appendArrows
. But it is not clear to me how to use this.
ANSWER
Answered 2021-Jun-08 at 18:36As this is the original question regarding the positioning of the arrow buttons, I guess it's worth mentioning, that @ixodid realized here, that @Waldi's column-approach is no longer working when the browser window is resized.
The following is a workaround regarding this:
QUESTION
Here is a link to a two slide slickR carousel that works well on a desktop but when viewed on an iphone, the image is cut off. ie it is not responsive.
How do I use slickR's carousel with images and have it work on both desktop and mobile without images being cutoff?
Do I need to add the responsive behaviour manually? The original JS page talks about it, but I'm not sure how to translate that to R.
R Script
...ANSWER
Answered 2021-Jun-08 at 12:21By default "auto" is set for .slick-slide img
's width property. You can overwrite this setting using relative css units (% / vw / vh) to rescale the image:
Edit: removed the column chaos and calculated relative positions for the arrows.
QUESTION
Have been working through this slickR problem for a while. I would greatly appreciate any input or fresh perspectives on how to resolve this issue or different ways to approach a solution.
There are two issues I've been working through:
The first I think can be solved using CSS, which I am not super familiar with, slickR seems to be creating multiple divs when the 'obj' is updated through the use of input$series. This is undesirable since it relocates the most recent div lower on the page. I tried using javascript, which I am also not very familiar with, to destroy the old slick using an observe event. Bonus points for a simple solution for that issue.
The main issue I am working to resolve is that I would like to convert the dots to images and have them update dynamically as each series is selected. The goal here is that I would like to have a larger image displayed above and a series of 'thumbnails' displayed below so that the user can have some idea of what each photo looks like without having to scroll through every image in the carousel.
My app is much more complicated than this example, but I am using slickR since it has a convenient way to access the current, active, and center slides, which I am using to filter an additional dataframe to render the display of information regarding each active/centered image in the carousel.
Here is an example which demonstrates both issues:
...ANSWER
Answered 2021-Feb-07 at 17:19To display the image in the middle, you could use carousel()
function, and list the items in carouselItem()
as shown below.
QUESTION
Colleagues and I are building a website in R-Markdown (basic, not blogdown, distillR, etc.) and have a couple slide carousels created using the slickR package. The code looks like:
...ANSWER
Answered 2021-Feb-12 at 15:27Following vignette for slickR with DOMS
QUESTION
Using a Shiny
app, I would like to implement a slider with slickR
to switch from one image to the other.
I managed to implement the slider but I'm having trouble in displaying the images correctly because of their different sizes.
In the following example, the stackexchange logo is way bigger than the stackoverflow logo. When displaying them with slickR()
, the bigger logo makes inroads into the first one like this:
I would also like to have the size of the pictures relative to the size of the screen.
Here is a reproducible example of the Shiny app used to generate the above image:
...ANSWER
Answered 2021-Jan-19 at 14:39I don't manage to get it with the 'slickR' package. Here is a solution which doesn't use this package, it uses the 'slick' JavaScript library. You have to download the library files and put them in the www/slick-1.8.1/slick folder.
QUESTION
I am making a Shiny
app with tabPanels
embedded in a navbarPage
.
In each tabPanel
, I generate a serie of image. When switching from one panel to the other one, the image loaded in one of them disappear.
I have to "refresh" manually the page to see it again. The problem seems similar than the one posted here but I cannot really subset my tabPanels
, even though I gave $id
and value
to them.
Here is a reproducible example:
...ANSWER
Answered 2021-Jan-22 at 15:22When there are multiple slickR
objects to be rendered, you need to use a unique slideId
for each. Furthermore you should not wrap render*
functions in observe
and use the same id
for two selectInput
s.
Please check the following:
QUESTION
I am trying to create a webpage where I have to show multiple slideshows. I found a way of using slickR package in R to display slideshow but i am unable to show multiple. Here is the code where I am trying to render two slickR, I dont know what i am doing wrong.Please help I am just a begginer.
Code:
...ANSWER
Answered 2020-Mar-11 at 10:53You can simply give a different slideID name to each output, like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install slickR
slickR with DOMs
slickR with Iframes
slickR with PDFs
slickR with Plots
slickR with Shiny
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page