Learn R Programming

imagefx (version 0.4.1)

image2: Plot Images (Matrices) with Intuitive Axes

Description

Plot images (array or matrix) using the rasterImage function.

Usage

image2(img, ...)

Arguments

img

numeric matrix or array to plot

additional arguments to pass to the plot function

Value

Nothing. Returns a plotting window.

Details

Note the difference in image orientation between image() and image2(). These two plots will have the origin in different locations and can make things tricky when picking areas to crop, etc...

See Also

rasterImage

Examples

Run this code
# NOT RUN {
image2(sakurajima)
# }

Run the code above in your browser using DataLab