plot.sociomatrix {sna}R Documentation

Plot Matrices Using a Color/Intensity Grid

Description

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.

Usage

plot.sociomatrix(x, labels=list(seq(1:dim(x)[1]), seq(1:dim(x)[2])), 
    drawlab=TRUE, diaglab=TRUE, ...)

Arguments

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

Details

plot.sociomatrix is particularly valuable for examining large adjacency matrices, whose structure can be non-obvious otherwise.

Value

None

Author(s)

Carter T. Butts buttsc@uci.edu

Examples

#Plot a small adjacency matrix
plot.sociomatrix(rgraph(5))

#Plot a much larger one
plot.sociomatrix(rgraph(100),drawlab=FALSE,diaglab=FALSE)

[Package Contents]