plot.layered {spatstat} | R Documentation |
Generates a layered plot.
The plot method for objects of class "layered"
.
## S3 method for class 'layered' plot(x, ..., which = NULL, plotargs = NULL)
x |
An object of class |
... |
Arguments to be passed to the |
which |
Subset index specifying which layers should be plotted. |
plotargs |
Arguments to be passed to the |
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
.
Null.
Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
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")))