gallery3 produces an interactive image gallery (alternative display).
gallery3(nodes, name = NULL, label = NULL, subtitle = NULL, order = NULL,
decreasing = FALSE, ntext = NULL,
mainframeHeight = NULL, mainframeWidth = NULL, mainframeImage = 0,
image = NULL, imageCopy = NULL, imageRatio = NULL, noFilterCols = NULL,
zoom = NULL, scale = NULL, main = NULL, note = NULL,
tableButton = FALSE, export = FALSE,
search = TRUE, cex = 1, language = c("en", "es", "ca"), dir = NULL)Object of class gallery_rd3.
a data frame with at least one column with the names of the gallery's elements.
name of the vector with names in the nodes data frame.
column name with image labels in the nodes data frame.
column name with image subtitles in the nodes data frame.
name of the column with node order in the nodes data frame.
decreasing or increasing sort of the nodes.
column name with html text in the nodes data frame.
a number to proportionally change mainframe height.
a number to proportionally change mainframe width.
a number to display image in mainframe. 0 = auto (default), 1 = before text, 2 = top right
column name which indicates the image paths in the nodes data frame.
column name which indicates the image copyright and attribution in the nodes data frame.
the aspect ratio of the images. Is the ratio of its width to its height. 3/4 by default.
disable filtering by especified column names.
Deprecated. Replaced by argument 'scale'.
a number between 0.1 and 1 as initial displaying scale.
upper title of the graph.
lower title of the graph.
Should gallery search be displayed? (default: TRUE)
A button will appear to show the data as a table.
A button will appear to export gallery as excel.
number indicating the amount by which plotting text should be scaled relative to the default.
a character string indicating the language of the graph (en=english (default); es=spanish; ca=catalan).
a character string representing the directory where the web files will be saved.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca.
data("finches")
finches$species <- system.file("extdata", finches$species,
package="rD3plot") # copy path to the species field
gallery <- gallery3(finches, image="species")
if (FALSE) {
plot(gallery)
}
Run the code above in your browser using DataLab