spatstat (version 1.31-0)

plot.layered: Layered Plot

Description

Generates a layered plot. The plot method for objects of class "layered".

Usage

## S3 method for class 'layered':
plot(x, ..., which = NULL, plotargs = NULL)

Arguments

x
An object of class "layered" created by the function layered.
...
Arguments to be passed to the plot method for every layer.
which
Subset index specifying which layers should be plotted.
plotargs
Arguments to be passed to the plot methods for individual layers. A list of lists of arguments of the form name=value.

Value

  • Null.

Details

Layering is a simple mechanism for controlling a high-level plot that is composed of several successive plots, for example, a background and a foreground plot. The layering mechanism makes it easier to plot, to switch on or off the plotting of each individual layer, and to control the plotting arguments that are passed to each layer. The layers of data to be plotted should first be converted into a single object of class "layered" using the function layered. Then the layers can be plotted using the method plot.layered.

See Also

layered, plot.

Examples

Run this code
data(cells)
   D <- distmap(cells)
   L <- layered(D, cells)
   plot(L)
   plot(L, which = 2)
   plot(L, plotargs=list(list(ribbon=FALSE), list(pch=3, cols="white")))

Run the code above in your browser using DataCamp Workspace