plot_blk | R Documentation |
Displays a plot of a blockmodel. Based on plot.blockmodel
(sna
must be installed), but reformats the plot to be square and removes the mandatory title.
plot_blk(x, labels = FALSE, ...)
x |
An object of class |
labels |
If |
... |
Further arguments passed to or from other methods |
This is a modification of the plot.blockmodel
function. The original
displays vertex ids as row, column, and diagonal labels, which can be unreadable for
larger networks. plot.blockmodel
also adds a title of the form
"Relation - 1", which this version omits.
Returns NULL
, invisibly.
Carter T. Butts (buttsc@uci.edu)
Modified by Tyme Suda
Carter T. Butts (2019). sna: Tools for Social Network Analysis. R package version 2.5. https://CRAN.R-project.org/package=sna
plot.blockmodel
g1 <- matrix(c(0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0), ncol = 4)
rownames(g1) <- c("a", "b", "c", "d")
colnames(g1) <- c("a", "b", "c", "d")
gl <- list(g1)
bm <- make_blk(gl, 1)[[1]]
plot_blk(bm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.