spatstat.linnet (version 3.1-5)

text.lpp: Add Text Labels to Point Pattern on a Network

Description

Plots a text label at the location of each point, for a point pattern on a linear network.

Usage

# S3 method for lpp
text(x, ...)

Value

Null.

Arguments

x

A point pattern on a linear network (class "lpp").

...

Additional arguments passed to text.default.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk.

Details

This function is a method for the generic text. A text label is added to the existing plot, at the location of each point in the point pattern x, or near the location of the midpoint of each segment in the segment pattern x.

Additional arguments ... are passed to text.default and may be used to control the placement of the labels relative to the point locations, and the size and colour of the labels.

By default, the labels are the serial numbers 1 to n, where n is the number of points or segments in x. This can be changed by specifying the argument labels, which should be a vector of length n.

See Also

text.default, text.ppp

Examples

Run this code
  X <- runiflpp(5, simplenet)
  plot(X)
  text(X, pos=2, col="blue")

Run the code above in your browser using DataLab