Skip to contents

Add Points to a Plot

Usage

# S3 method for class 'spherical'
text(x, labels = seq_along(x[, 1]), upper.hem = FALSE, earea = TRUE, ...)

Arguments

x

objects of class "Vec3", "Line", "Plane", "Pair", or "Fault".

labels

a character vector or expression specifying the text to be written. An attempt is made to coerce other language objects (names and calls) to expressions, and vectors and other classed objects to character vectors by as.character. If labels is longer than x and y, the coordinates are recycled to the length of labels.

upper.hem

logical. Whether the projection is shown for upper hemisphere (TRUE) or lower hemisphere (FALSE, the default).

earea

logical. Projection, either TRUE for Lambert equal-area projection (the default), or FALSE for meridional stereographic projection.

...

arguments passed to graphics::text()

Examples

stereoplot()
points(Line(c(90, 80), c(10, 75)), col = 1:2)
text(Line(c(90, 80), c(10, 75)), labels = c("L1", "L2"), col = 1:2, pos = 3)