plot.sociomatrix {sna} | R Documentation |
Plots a matrix, m
, associating the magnitude of the i,jth cell of m
with the color of the i,jth cell of an nrow(m)
by ncol(m)
grid.
plot.sociomatrix(x, labels=list(seq(1:dim(x)[1]), seq(1:dim(x)[2])), drawlab=TRUE, diaglab=TRUE, ...)
x |
An input matrix |
labels |
A list containing the vectors of row and column labels (respectively) |
drawlab |
Add labels to the plot? |
diaglab |
Label the diagonal? |
... |
Additional arguments to plot |
plot.sociomatrix
is particularly valuable for examining large adjacency matrices, whose structure can be non-obvious otherwise.
None
Carter T. Butts buttsc@uci.edu
#Plot a small adjacency matrix plot.sociomatrix(rgraph(5)) #Plot a much larger one plot.sociomatrix(rgraph(100),drawlab=FALSE,diaglab=FALSE)