barCoin
produces a barCoin object.
barCoin(data, variables = colnames(data), commonlabel = NULL,
dichotomies = c("_all","_none"), valueDicho = 1, weight = NULL,
subsample = FALSE, sort = NULL, decreasing = TRUE, nodes = NULL,
name = NULL, select = NULL, scalebar = FALSE, note = NULL,
label = NULL, text = NULL, color = NULL, defaultColor = "#1f77b4",
expected = FALSE, confidence = FALSE, level = .95, significance = FALSE,
minimum = 1 , maximum = nrow(data), percentages = FALSE,
criteria = c("Z","hyp"), Bonferroni = FALSE,
support = 1, minL = -Inf, maxL = 1,
language = c("en","es","ca"), cex = 1.0, dir = NULL)
Object of class barCoin
.
a data frame
a vector of variables included in the previous data frame
a vector of variables whose names are to be included in nodes labels
a vector of dichotomous variables to appear as just one categorie
value to be selected for dichotomous variables. Default is 1
a vector of weights. Optimal for data.framed tables.
retrict the analysis to scenarios with at least one event.
name of the vector in the nodes data frame to order the graph.
decreasing or increasing sort of the graph order.
a data frame with at least two vectors of names and incidences.
name of the vector with names in the nodes data frame.
Name of the event (in nodes name column) to start the visualization.
Should the bars fill the screen height? Default = FALSE.
lower title of the graph.
name of the vector with labels in the nodes data frame.
name of the vector with html text in the nodes data frame.
name of the vector with color variable in the nodes data frame.
a character vector giving a valid html color.
name of the vector with expected coincidences in the links data frame.
name of the vector with confidence interval in the links data frame.
confidence level
name of the vector with significance in the links data frame.
minimum frequency to be considered.
maximum frequency to be considered.
a logical value true if percentages are to be shown. Default = TRUE.
statistic to be use for selection criteria.
Bonferroni criterium of the signification test.
minimum value of the frequency of the coincidence to be edged.
minimum value of the statistic to include the edge in the list.
maximum value of the statistic to include the edge in the list.
a character vector (es=spanish; en=english; ca=catalan).
number indicating the amount by which plotting text should be scaled relative to the default. Default = 1.
a "character" string representing the directory where the web files will be saved.
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
# 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]
barCoin(data,dichotomies="_all")
barCoin(data,dichotomies="_all",confidence=TRUE,percentages=TRUE)
Run the code above in your browser using DataLab