plotblk: Plot a blockmodel

Description Usage Arguments Details Value Author(s) References See Also Examples

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

1

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.

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

plot.blockmodel

Examples

1
2
3
4
5
6
7
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)

concorR documentation built on Nov. 26, 2020, 1:08 a.m.