plotblk function

Plot a blockmodel

Plot a blockmodel

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, ...)

Arguments

  • x: An object of class blockmodel
  • labels: If TRUE, vertex ids are displayed as row/column/diagonal labels. If FALSE, no node labels are shown.
  • ...: 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.

Returns

Returns NULL, invisibly.

References

Carter T. Butts (2019). sna: Tools for Social Network Analysis. R package version 2.5. https://CRAN.R-project.org/package=sna

Author(s)

Carter T. Butts (buttsc@uci.edu)

Modified by Tyme Suda

See Also

plot.blockmodel

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)
  • Maintainer: Adrienne Traxler
  • License: GPL (>= 2)
  • Last published: 2020-11-25