image.table: image plot of a table

Description Usage Arguments Value Author(s)

Description

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.

Usage

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", ...)

Arguments

x

a matrix (or data.frame) of numbers

legend

add a color legend to RHS of plot

col

a list of colors such as that generated by rainbow, heat.colors, topo.colors, terrain.colors or similar functions.

zlim

the minimum and maximum z values for which colors should be plotted, defaulting to the range of the finite values of z. Each of the given colors will be used to color an equispaced interval of this range. The midpoints of the intervals cover the range, so that values just outside the range will be plotted.

Value

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.

Author(s)

Mark Cowley, 2 June 2005


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.