Plots a text label at the location of each point in a spatial point pattern, or each object in a spatial pattern of objects.
1 2 3 4 5 6
A spatial point pattern (object of class
Additional arguments passed to
These functions are methods for the generic
A text label is added to the existing plot,
at the location of each point in the point pattern
or near the location of the midpoint of each segment
in the segment pattern
... 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 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
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.