Description Usage Arguments Details Author(s) See Also
Image is a modified version of the image
function
that behaves more like Matlab imagesc.
1 |
z |
A numeric matrix or data.frame containing image data. |
xaxis, yaxis |
Lists of arguments to the
|
NA.color |
Color for missing values. Set to NA for transparency (so the color
specified by |
... |
Other arguments passed to |
Image behaves like image
, with the following
differences:
The z argument may be a data.frame with numeric columns; it will be automatically converted to a matrix.
The data matrix z is transposed, so that columns run along the x-axis and rows along the y-axis.
The direction of the y-axis is reversed, so that zero is at the top.
If omitted, the x and y arguments are assumed from the size of z, i.e.,
x <- 0.5 + (0:ncol(z))
y <- 0.5 + (0:nrow(z))
If supplied, the x and y arguments must be explicitly named.
If a zlim argument is supplied, values outside the zlim range are replaced with the appropriate limit (floor or ceiling values to zlim).
You may annotate the axes using the xaxis and yaxis list arguments
This behavior should be familiar to users of Matlab's imagesc function.
M.W.Rowe, mwr.stats@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.