plot.lpp {spatstat.linnet} | R Documentation |
Plot Point Pattern on Linear Network
Description
Plots a point pattern on a linear network.
Plot method for the class "lpp"
of point patterns on a linear network.
Usage
## S3 method for class 'lpp'
plot(x, ..., main, add = FALSE,
type = c("p", "n"),
use.marks=TRUE, which.marks=NULL,
legend=TRUE,
leg.side=c("left", "bottom", "top", "right"),
leg.args=list(),
show.all = !add, show.window=FALSE, show.network=TRUE,
do.plot = TRUE, multiplot=TRUE)
Arguments
x |
Point pattern on a linear network (object of class |
... |
Additional arguments passed to |
main |
Main title for plot. |
add |
Logical value indicating whether the plot is to be added to the
existing plot ( |
type |
Type of plot: either |
use.marks |
logical flag; if |
which.marks |
Index determining which column of marks to use,
if the marks of |
legend |
Logical value indicating whether to add a legend showing the mapping between mark values and graphical symbols (for a marked point pattern). |
leg.side |
Position of legend relative to main plot. |
leg.args |
List of additional arguments passed to |
show.all |
Logical value indicating whether to plot everything including the main title and the window containing the network. |
show.window |
Logical value indicating whether to plot the
window containing the network. Overrides |
show.network |
Logical value indicating whether to plot the network. |
do.plot |
Logical value determining whether to actually perform the plotting. |
multiplot |
Logical value giving permission to display multiple plots. |
Details
The linear network is plotted by plot.linnet
,
then the points are plotted using code equivalent to plot.ppp
.
Commonly-used arguments include:
-
col
andlwd
for the colour and width of lines in the linear network -
cols
for the colour or colours of the points -
chars
for the plot characters representing different types of points -
shape
to control the shape of the symbol (this argument takes precedence overchars
).
These are documented in the help file for
plot.ppp
.
If shape="crossticks"
, the points are
drawn as short line segments perpendicular to the network.
Note that the linear network will be plotted
even when add=TRUE
, unless show.network=FALSE
.
Value
(Invisible) object of class "symbolmap"
giving the correspondence between
mark values and plotting characters.
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk.
See Also
lpp
.
See plot.ppp
for options for representing the points.
See also points.lpp
, text.lpp
.
Examples
plot(chicago, cols=1:7)
plot(dendrite, shape="crossticks", cols=2:4, size=8,
leg.side="bottom", leg.args=list(lwd=3))