Creates a grid of images.
freewall(
images,
backgroundImages = FALSE,
widths = 100,
heights = NULL,
width = "100%",
draggable = FALSE,
animate = TRUE,
cellW = 100,
cellH = 100,
delay = 0,
fixSize = NULL,
gutterX = 10,
gutterY = 10,
keepOrder = TRUE,
rightToLeft = FALSE,
bottomToTop = FALSE,
elementId = NULL
)
A htmlwidget
object.
character vector of paths or urls to some images; for a Shiny app, the image files must be located in the www subfolder
Boolean, whether to render the images with the
CSS property background-image
or with img
elements
the widths of the images in pixels; if a single value is given, it will be used for all images
the heights of the images in pixels; if a single value is given,
it will be used for all images; setting the heights is necessary if
backgroundImages=TRUE
, otherwise this argument can be set to
NULL
the width of the container
Boolean, whether to enable draggability
Boolean, whether to animate
width of unit, a number of pixels or "auto"
height of unit, a number of pixels or "auto"
time delay for showing an item
see freewall options
space between columns, a number of pixels or "auto"
space between rows, a number of pixels or "auto"
Boolean, whether to keep the order of the images
Boolean, whether to let the layout start render from right to left
Boolean, whether to let the layout start render from bottom to top
a HTML id for the container (usually useless)
freewall(
nature(), widths = 200, cellW = 200, cellH = 200, draggable = TRUE
)
Run the code above in your browser using DataLab