Description Usage Arguments Author(s) Examples
Load a netCoin plot to display in shiny.
1 | shinyCoin(x)
|
x |
is a |
Modesto Escobar, Department of Sociology and Communication, University of Salamanca. See https://sociocav.usal.es/blog/modesto-escobar/
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# 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) # edge data frame
net <- netCoin(N, E) # netCoin object
shinyCoin(net)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.