Learn R Programming

spatstat.geom (version 3.7-0)

plot.imlist: Plot a List of Images

Description

Plots an array of pixel images.

Usage

# S3 method for imlist
plot(x, ..., plotcommand="image",
                          equal.ribbon=FALSE,
                          equal.scales=FALSE, 
                          ribmar=NULL)

# S3 method for imlist image(x, ..., equal.ribbon=FALSE, equal.scales=FALSE, ribmar=NULL)

# S3 method for listof image(x, ..., equal.ribbon=FALSE, equal.scales=FALSE, ribmar=NULL)

Arguments

Value

Null.

Details

These are methods for the generic plot commands plot and image for the class "imlist". They are currently identical.

An object of class "imlist" represents a list of pixel images. (The outdated class "listof" is also handled.)

Each entry in the list x will be displayed as a pixel image, in an array of panels laid out on the same graphics display, using plot.solist. Individual panels are plotted by plot.im.

If equal.ribbon=FALSE (the default), the images are rendered using different colour maps, which are displayed as colour ribbons beside each image. If equal.ribbon=TRUE, the images are rendered using the same colour map, and a single colour ribbon will be displayed at the right side of the array. The colour maps and the placement of the colour ribbons are controlled by arguments ... passed to plot.im.

If equal.scales=TRUE, the images are plotted using the same physical scale, and the plots will be aligned neatly where possible. If equal.scales=FALSE (the default), images are plotted using equal amounts of space in the available plotting area, so they may be plotted at different physical scales.

See Also

plot.solist, plot.im

Examples

Run this code
 ## bei.extra is a list of pixel images on the same spatial domain
 Y <- solapply(bei.extra, scaletointerval)
 image(Y, equal.ribbon=TRUE, equal.scales=TRUE,
          main="",
          mar.panel=0, hsep=1,
          ribside="bottom",
          col.ticks="blue", col.axis="blue", cex.axis=1.2)

Run the code above in your browser using DataLab