multiPages | R Documentation |
multiPages
produces a gallery page to explore multiple 'netCoin' graphs.
multiPages(x, title = NULL, columns = NULL, imageSize = NULL,
description = NULL, note = NULL,
cex = 1, dir = tempDir(), show = FALSE)
x |
is a |
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. |
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.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.