gallery
produces an interactive image gallery.
gallery(nodes, name = NULL, label = NULL, color = NULL,
border = NULL, ntext = NULL, info = NULL, infoFrame = c("right","left"),
image = NULL, zoom = 1, itemsPerRow = NULL, main = NULL, note = NULL,
showLegend = TRUE, frequencies = FALSE, labelTooltip = TRUE,
cexTooltip = 1, help = NULL, helpOn = FALSE, tutorial = FALSE,
description = NULL, descriptionWidth = NULL, roundedItems = FALSE,
ntextctrl = FALSE, controls = 1:5, cex = 1, defaultColor = "#1f77b4",
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 background color variable in the nodes data frame.
column name with image border width variable in the nodes data frame or a numeric vector.
column name with html text in the nodes data frame.
column name with information to display in a panel in the nodes data frame.
In which panel should the information be displayed? The left panel is only available if frequencies are not showing.
column name which indicates the image paths in the nodes data frame.
a number between 0.1 and 10 as initial displaying zoom.
number of items in each row.
upper title of the graph.
lower title of the graph.
a logical value true if barplots representing node attributes frequencies will be added to the final graph.
show label on mouseover.
number indicating the amount by which plotting text should be scaled relative to the default in the label tooltip.
a logical value true if the legend is to be shown.
a character string indicating a help text of the graph.
Should the help be shown at the beginning?
Should tutorial be displayed?
a character string indicating a desription text for the graph.
a percentage indicating a width for the description panel (25 by default).
Display items with rounded borders.
Previous tooltips will be closed unless you hold down the control key (FALSE by default).
a numeric vector indicating which controls will be shown. 1 = topbar, 2 = xlsx exportation, 3 = table, 4 = netCoin logo, 5 = topbar buttons. NULL hide all controls, negative values deny each control and 0 deny all.
number indicating the amount by which plotting text should be scaled relative to the default.
a character vector giving a valid html color for node representation.
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. See https://sociocav.usal.es/blog/modesto-escobar/
data("finches")
finches$species <- system.file("extdata", finches$species,
package="netCoin") # copy path to the species field
gallery(finches, image="species", main="Species in Galapagos Islands",
note="Data source: Sanderson (2000)")
Run the code above in your browser using DataLab