plotImageRotated: Plot a rotated image plot

Description Usage Arguments Details Value Author(s) See Also

View source: R/plotImageRotated.R

Description

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.

Usage

1
2
3
plotImageRotated(data, col.vals = c(), row.vals = c(), scale = TRUE, 
    col = heat.colors(20), zlim = range(data, na.rm = TRUE), 
    title = "", useRaster = TRUE, xlab = "", ylab = "", ...)

Arguments

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

Details

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.

Value

Nothing is returned.

Author(s)

Jannis v. Buttlar

See Also

image, plotColorScale, the plotting routines of the raster package


JBTools documentation built on May 2, 2019, 5:47 p.m.