rd3_multigraph: Integrates interactive 'rD3plot' graphs.

View source: R/multigraph.R

rd3_multigraphR Documentation

Integrates interactive 'rD3plot' graphs.

Description

rd3_multigraph produce an interactive multi graph with the integration of 'rD3plot' graphs in the final result.

Usage

rd3_multigraph(..., mfrow = NULL, dir = NULL)

Arguments

...

rD3plot graphs (network_rd3, barplot_rd3, timeplot_rd3) objects or string paths to html "directories".

mfrow

a vector of the form 'c(nr, nc)'. Subsequent graphs will be drawn in an 'nr'-by-'nc' array on the device by rows.

dir

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

Value

This function returns a multi_rd3 object.

Author(s)

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

Examples

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)
## Not run: 
plot(multi)

## End(Not run)

rD3plot documentation built on March 31, 2023, 7:15 p.m.