heatmatrix | R Documentation |
This is a very simplified heatmap function: basically a convienent wrapper around the 'image' function.
heatmatrix(x, values=TRUE, clp=c('bottom','top'), rlp=c('left','right'),
xadj=.02, yadj=.3, ylab.cntr=FALSE, cex=1, cex.axis=1, ...)
x |
A matrix |
values |
boolean: should the values be plotted over each cell? |
clp |
column label position: either 'bottom' or 'top'. |
rlp |
row label position: either 'right' or 'left' |
xadj |
x-adjust of the row labels |
yadj |
y-adjust of the column labels. |
ylab.cntr |
boolean for justification of row labels. |
cex |
character expansion factor for values in cells if values == true |
cex.axis |
character expansion factor for axis tick mark labels |
... |
other paramters passed on to image() |
a heatmap plot
image, heatmap, heatmap.2
data(mtcars)
x <- as.matrix(mtcars)
heatmatrix(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.