plot.listof {spatstat} | R Documentation |
Plots a list of things
## S3 method for class 'listof' plot(x, ..., main, arrange=TRUE, nrows=NULL, ncols=NULL, main.panel=NULL, mar.panel=c(2,1,1,2), panel.begin=NULL, panel.end=NULL, panel.args=NULL, plotcommand="plot")
x |
An object of the class |
... |
Arguments passed to |
main |
Overall heading for the plot. |
arrange |
Logical flag indicating whether to plot the objects
side-by-side on a single page ( |
nrows,ncols |
Optional. The number of rows/columns in the plot layout
(assuming |
main.panel |
Optional. A character string, or a vector of character strings, giving the headings for each of the objects. |
mar.panel |
Value of the graphics parameter |
panel.begin,panel.end |
Optional. Functions that will be executed before and after each panel is plotted. |
panel.args |
Internal use only. |
plotcommand |
Optional. Character string containing the name of the command that should be executed to plot each panel. |
This is the plot
method for the class "listof"
.
An object of class "listof"
(defined in the base R package) represents
a list of objects, all belonging to a common class.
The base R package defines a method for printing these objects,
print.listof
, but does not define a method for plot
.
So here we have provided a method for plot
.
In the spatstat package, the function
density.splitppp
produces an object of
class "listof"
, essentially a list of pixel images.
These images can be plotted in a nice arrangement
using plot.listof
. See the Example.
Null.
Adrian Baddeley Adrian.Baddeley@csiro.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
print.listof
,
contour.listof
,
image.listof
,
density.splitppp
# Multitype point pattern data(amacrine) plot(density(split(amacrine)))