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.
## S3 method for class 'sociomatrix' plot(x, labels=NULL, drawlab=TRUE, diaglab=TRUE, drawlines=TRUE, xlab=NULL, ylab=NULL, cex.lab=1, ...) sociomatrixplot(x, labels=NULL, drawlab=TRUE, diaglab=TRUE, drawlines=TRUE, xlab=NULL, ylab=NULL, cex.lab=1, ...)
x |
an input graph. |
labels |
a list containing the vectors of row and column labels (respectively); defaults to numerical labels. |
drawlab |
logical; add row/column labels to the plot? |
diaglab |
logical; label the diagonal? |
drawlines |
logical; draw lines to mark cell boundaries? |
xlab |
x axis label. |
ylab |
y axis label. |
cex.lab |
optional expansion factor for labels. |
... |
additional arguments to |
plot.sociomatrix
is particularly valuable for examining large adjacency matrices, whose structure can be non-obvious otherwise. sociomatrixplot
is an alias to plot.sociomatrix
, and may eventually supersede it.
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)