Description Usage Arguments Value Author(s)
Function to plot a matrix
or data.frame
as
an image such that cell [1,1] is in top left of the
image, and cell [nrow, ncol]
is in bottom right
corner, ie in the same orientation as print
or
write.table
would show it. Note that
image
rotates the image along the diagonal.
1 2 3 4 5 6 7 | image.table(x, main = "Heatmap", col = NULL, zlim = NULL,
legend = TRUE, unlog.legend = FALSE,
legend.pos = "bottom", legend.main = "", na.rm = 0,
xlab = "column index", xlabels = NULL,
xlabels.pos = "bottom", ylab = "row index",
ylabels = NULL, ylabels.pos = "left",
row.descriptions = NULL, grid.colour = "white", ...)
|
x |
a |
legend |
add a color legend to RHS of plot |
col |
a list of colors such as that generated by
|
zlim |
the minimum and maximum |
an image with x[1,1] in top left, and x[nrow(x), ncol(x)] in bottom left corner Todo: get legend=TRUE to work when layout or mfrow/mfcol has prev. been set.
Mark Cowley, 2 June 2005
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.