Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plot.lpp

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,
                   use.marks=TRUE, which.marks=NULL,
                   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 "lpp").

...

Additional arguments passed to plot.linnet or plot.ppp.

main

Main title for plot.

add

Logical value indicating whether the plot is to be added to the existing plot (add=TRUE) or whether a new plot should be initialised (add=FALSE, the default).

use.marks

logical flag; if TRUE, plot points using a different plotting symbol for each mark; if FALSE, only the locations of the points will be plotted, using points().

which.marks

Index determining which column of marks to use, if the marks of x are a data frame. A character or integer vector identifying one or more columns of marks. If add=FALSE then the default is to plot all columns of marks, in a series of separate plots. If add=TRUE then only one column of marks can be plotted, and the default is which.marks=1 indicating the first column of marks.

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.all.

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 by plot.ppp.

Commonly-used arguments include:

  • col and lwd 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

  • legend and leg.side to control the graphics legend

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 r.turner@auckland.ac.nz 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:6)

spatstat.linnet

Linear Networks Functionality of the 'spatstat' Family

v2.1-1
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Ottmar Cronie [ctb], Tilman Davies [ctb], Greg McSwiggan [ctb], Suman Rakshit [ctb]
Initial release
2021-03-28

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.