Image: An Alternative Image Plotting Function

Description Usage Arguments Details Author(s) See Also

View source: R/Image.R

Description

Image is a modified version of the image function that behaves more like Matlab imagesc.

Usage

1
Image(z, xaxis, yaxis, NA.color = "gray", ...)

Arguments

z

A numeric matrix or data.frame containing image data.

xaxis, yaxis

Lists of arguments to the axis. All arguments should be explicitly named. The "side" argument may be omitted. An example:

xaxis=list(side=1, at=1:4, labels=LETTERS[1:4], cex.axis=0.8)

NA.color

Color for missing values. Set to NA for transparency (so the color specified by par(bg="") will show through. Note that this is accomplished by plotting a rectangle over the whole plot of the specified color, then replotting the image, so if you are adding the image to an existing plot, you may want to set this argument to NA

...

Other arguments passed to image.

Details

Image behaves like image, with the following differences:

This behavior should be familiar to users of Matlab's imagesc function.

Author(s)

M.W.Rowe, mwr.stats@gmail.com

See Also

image, par.


mwrowe/microRutils documentation built on June 12, 2021, 2:41 p.m.