imagemat | R Documentation |
Produces an image of a matrix which matches the natural orientation.
imagemat(
x,
col = colorRampPalette(c("white", "grey50"))(9),
las = 1,
xlab = "",
ylab = "",
...
)
x |
the matrix |
col |
the colors |
las |
as in par |
xlab |
x-axis title |
ylab |
y-axis title |
... |
arguments passed to image |
Michael I. Love
x <- matrix(c(1,0,0,0,1,
1,1,0,1,1,
1,0,1,0,1,
1,0,0,0,1,
1,0,0,0,1),
ncol=5,byrow=TRUE)
imagemat(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.