plot_socio | R Documentation |
Plots a network of interest using CONCOR partition as vertex color. Uses an igraph
object, normally created by concor_make_igraph
or
concor_igraph_apply
.
plot_socio(iobject, nsplit = NULL)
iobject |
An |
nsplit |
Split number to use as vertex color. |
This is a shortcut to plot an igraph
object with usually-readable settings. It
looks for the input iobject
to have a vertex attribute called
csplit(nsplit)
that holds the CONCOR partition assignment (for example, if
nsplit = 2
, then plot_socio
expects a vertex attribute named
csplit2
).
Returns NULL, invisibly.
concor
, concor_make_igraph
, concor_igraph_apply
a <- matrix(c(0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0), ncol = 4)
rownames(a) <- c("a", "b", "c", "d")
colnames(a) <- c("a", "b", "c", "d")
i_out <- concor_make_igraph(list(a))
plot_socio(i_out[[1]], 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.