text.ppp

0th

Percentile

Add Text Labels to Spatial Pattern

Plots a text label at the location of each point in a spatial point pattern, or each object in a spatial pattern of objects.

Keywords
hplot, spatial
Usage
# S3 method for ppp
text(x, …)

# S3 method for lpp text(x, …)

# S3 method for psp text(x, …)

Arguments
x

A spatial point pattern (object of class "ppp"), a point pattern on a linear network (class "lpp") or a spatial pattern of line segments (class "psp").

Additional arguments passed to text.default.

Details

These functions are methods 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.

Value

Null.

See Also

text.default

Aliases
  • text.ppp
  • text.lpp
  • text.psp
Examples
# NOT RUN {
  plot(cells)
  text(cells, pos=2)

  plot(Frame(cells))
  text(cells, cex=1.5)

  S <- as.psp(simplenet)
  plot(S)
  text(S)
# }
Documentation reproduced from package spatstat, version 1.55-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.