Learn R Programming

rD3plot (version 1.1.37)

rd3_multiPages: Produces a gallery of 'rD3plot' graphs.

Description

rd3_multiPages produces a gallery page to explore multiple 'rD3plot' graphs.

Usage

rd3_multiPages(x, title = NULL, columns = NULL, imageSize = NULL,
  description = NULL, note = NULL,
  cex = 1, dir = tempDir(), show = FALSE)

Value

The function creates a folder in your computer with an HTML document named index.html which contains the graph. This file can be directly opened with your browser.

Author

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

Arguments

x

is a multi_rd3 object. See rd3_multigraph

title

the text for a main title.

columns

a numeric vector giving the number of columns to display items in gallery. Default = 3.

imageSize

a numeric vector giving the size of images in gallery. Default = 75.

description

a description text for the gallery.

note

a footer text for the gallery.

cex

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

dir

a "character" string representing the directory where the graph will be saved.

show

a logical value true if the graph is to be shown. Default = FALSE.

Examples

Run this code
data(miserables)
net <- network_rd3(miserables$nodes, miserables$links,
         size="degree", color="group", lwidth="value")

data(finches)
data(galapagos)
bar <- barplot_rd3(finches, galapagos, select="Certhidea olivacea")

data(sociologists)
time <- timeline_rd3(sociologists,"name","birth","death","birthcountry")

multi <- rd3_multigraph(network=net, barplot=bar, timeline=time)
if (FALSE) {
rd3_multiPages(multi,"Some graphs",show=TRUE)
}

Run the code above in your browser using DataLab