multiPages: Produces a gallery of 'netCoin' graphs.

multiPagesR Documentation

Produces a gallery of 'netCoin' graphs.

Description

multiPages produces a gallery page to explore multiple 'netCoin' graphs.

Usage

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

Arguments

x

is a mGraph object. See multigraphCreate

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.

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(s)

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

Examples

# A character column (with separator)
frame <- data.frame(A = c("Man; Women", "Women; Women",
                        "Man; Man", "Undet.; Women; Man"))
data <- dichotomize(frame, "A", sep = "; ")[2:4]
C <- coin(data) # coincidence matrix
N <- asNodes(C) # node data frame
E <- edgeList(C,c("frequency","expected","haberman")) # edge data frame
bC<- barCoin(data,dichotomies="_all") # barCoin object
cC<- barCoin(data,dichotomies="_all",expected=TRUE) # barCoin object
nC<- netCoin(N,E) # netCoin object
multi <- multigraphCreate("Bar graph" = bC,
                  "Conditional bar graph" = cC, 
                  "Net graph"=nC)
## Not run: 
multiPages(multi,"Some graphs",show=TRUE)

## End(Not run)

netCoin documentation built on March 31, 2023, 7:34 p.m.