plot_blk {concorR} | R Documentation |
Plot a blockmodel
Description
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.
Usage
plot_blk(x, labels = FALSE, ...)
Arguments
x |
An object of class |
labels |
If |
... |
Further arguments passed to or from other methods |
Details
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.
Value
Returns NULL
, invisibly.
Author(s)
Carter T. Butts (buttsc@uci.edu)
Modified by Tyme Suda
References
Carter T. Butts (2019). sna: Tools for Social Network Analysis. R package version 2.5. https://CRAN.R-project.org/package=sna
See Also
Examples
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)