
Last chance! 50% off unlimited learning
Sale ends in
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.matrix(x, labels=list(seq(1:dim(x)[1]), seq(1:dim(x)[2])),
drawlab=TRUE, diaglab=TRUE, ...)
plot
plot.matrix
is particularly valuable for examining large adjacency matrices, whose structure can be non-obvious otherwise.#Plot a small adjacency matrix
plot.matrix(rgraph(5))
#Plot a much larger one
plot.matrix(rgraph(100),drawlab=FALSE,diaglab=FALSE)
Run the code above in your browser using DataLab