gallery3_rd3: Images in a grid gallery.

View source: R/gallery.R

gallery3_rd3R Documentation

Images in a grid gallery.

Description

gallery3_rd3 produces an interactive image gallery (alternative display).

Usage

gallery3_rd3(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, main = NULL, note = NULL, search = TRUE,
    cex = 1, language = c("en", "es", "ca"), dir = NULL)

Arguments

nodes

a data frame with at least one column with the names of the gallery's elements.

name

name of the vector with names in the nodes data frame.

label

column name with image labels in the nodes data frame.

subtitle

column name with image subtitles in the nodes data frame.

order

name of the column with node order in the nodes data frame.

decreasing

decreasing or increasing sort of the nodes.

ntext

column name with html text in the nodes data frame.

mainframeHeight

a number to proportionally change mainframe height.

mainframeWidth

a number to proportionally change mainframe width.

mainframeImage

a number to display image in mainframe. 0 = auto (default), 1 = before text, 2 = top right

image

column name which indicates the image paths in the nodes data frame.

imageCopy

column name which indicates the image copyright and attribution in the nodes data frame.

imageRatio

the aspect ratio of the images. Is the ratio of its width to its height. 3/4 by default.

noFilterCols

disable filtering by especified column names.

zoom

a number between 0.1 and 1 to reduce item sizes.

main

upper title of the graph.

note

lower title of the graph.

search

Should gallery search be displayed? (default: TRUE)

cex

number indicating the amount by which plotting text should be scaled relative to the default.

language

a character string indicating the language of the graph (en=english (default); es=spanish; ca=catalan).

dir

a character string representing the directory where the web files will be saved.

Value

Object of class gallery_rd3.

Author(s)

Modesto Escobar, Department of Sociology and Communication, University of Salamanca.

Examples

data("finches")
finches$species <- system.file("extdata", finches$species,
        package="rD3plot") # copy path to the species field
gallery <- gallery3_rd3(finches, image="species")
## Not run: 
plot(gallery)

## End(Not run)

rD3plot documentation built on Jan. 10, 2026, 5:07 p.m.