| plot_socio {concorR} | R Documentation |
Plot sociogram colored by CONCOR partition
Description
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.
Usage
plot_socio(iobject, nsplit = NULL)
Arguments
iobject |
An |
nsplit |
Split number to use as vertex color. |
Details
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).
Value
Returns NULL, invisibly.
See Also
concor, concor_make_igraph, concor_igraph_apply
Examples
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)
[Package concorR version 0.2.1 Index]