"layered"
.## S3 method for class 'layered':
plot(x, ..., which = NULL, plotargs = NULL,
add=FALSE, show.all=!add, main=NULL,
do.plot=TRUE)
"layered"
created by the function layered
.plot
method
for every layer.plot
methods
for individual layers. A list of lists of arguments of the
form name=value
."bbox"
giving a bounding box for the entire plot. 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
.
To zoom in on a subregion,
apply the subset operator [.layered
to x
before plotting.
Graphics parameters for each layer are determined by (in order of precedence)
...
, plotargs
, and layerplotargs(x)
.
The graphics parameters may also include the special argument
.plot
specifying (the name of) a function which will be used to
perform the plotting instead of the generic plot
.
The argument show.all
is recognised by many plot methods
in TRUE
for new plots and FALSE
for added plots.
In plot.layered
, the argument show.all
applies only to the
first layer. The subsequent layers are plotted
with show.all=FALSE
.
To override this, that is, if you really want to draw all
the components of all layers of x
,
insert the argument show.all=TRUE
in each
entry of plotargs
or layerplotargs(x)
.
layered
,
layerplotargs
,
[.layered
,
plot
.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")))
# plot a subregion
plot(L[, square(0.5)])
Run the code above in your browser using DataLab