Description Usage Arguments Details Value Author(s) See Also
plotImageRotated plots a raster/matrix using image() but supplying a rotated version of the matrix, i.e. it plots the matrix as it printed on the screen.
1 2 3 |
data |
matrix: data to be plotted |
col.vals |
numeric vector: coordinate values for the columns of data |
row.vals |
numeric vector: coordinate values for the rows of data |
scale |
logical: whether to plot a color scale besides the plot |
col |
color vector: colors to create the color scale. |
zlim |
numeric vector (length two): outer limits of the color-scale. Values above or below this range are colored brighter/darker than the maximum/minimum color (see ?plotColorScale). |
title |
character string: title of the color legend |
useRaster |
argument passed to image() to decide whether to draw polygons (FALSE) or use a bitmap raster (TRUE). |
xlab |
|
ylab |
|
... |
further arguments passed to image |
The normal image() function always plots a rotated version of a matrix. This function rotates the input to image in a way that the first entry of the matrix (col=1, row=1) shows up at the top-left corner of the plot. In other words the way a matrix would be displayed by printing it directly mapped to the plot.
Nothing is returned.
Jannis v. Buttlar
image
, plotColorScale
, the plotting routines of the raster package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.