sl.plot.text: Plot Text

Description Usage Arguments Details Note Author(s) Examples

View source: R/sl.plot.text.R

Description

Plot simple text into a spheRlab plot

Usage

1
sl.plot.text(plot.init.res, lon, lat, labels = seq(1, length(lon)), col = "black", ignore.visibility = FALSE, adj = NULL, pos = NULL, offset = 0.5, vfont = NULL, cex = 1, font = NULL)

Arguments

plot.init.res

a spheRlab plot specifics list as returned by sl.plot.init (or a variant thereof).

lon

a scalar or vector specifying the longitude(s) of the text location(s).

lat

a scalar or vector specifying the latitude(s) of the text location(s).

labels

a character or character vector specifying the text(s).

col

the color to be used, possibly a vector. Default is col="black".

ignore.visibility

a logical value indicating whether or not to ignore visibility.

adj

one or two values in [0, 1] which specify the x (and optionally y) adjustment of the labels.

pos

a position specifier for the text. If specified this overrides any adj value given. Values of 1, 2, 3 and 4, respectively indicate positions below, to the left of, above and to the right of the specified coordinates.

offset

when pos is specified, this value gives the offset of the label from the specified coordinate in fractions of a character width.

vfont

NULL for the current font family, or a character vector of length 2 for Hershey vector fonts. The first element of the vector selects a typeface and the second element selects a style. Ignored if labels is an expression.

cex

numeric character expansion factor; multiplied by par("cex") yields the final character size. NULL and NA are equivalent to 1.0.

font

If vfont=NULL, the font to be used, possibly a vector. Defaults to the value of the global graphical parameter in par().

Details

Plots simple text at lon-lat locations, using the R function text. Numerous arguments are simply passed to text.

Note

It would be nice if, at some point, a function would be added to spheRlab that allows plotting text on the spherical surface, probably just making use of sl.plot.polygon.

Author(s)

Helge Goessling

Examples

1
## To be provided ...

helgegoessling/spheRlab documentation built on Sept. 29, 2017, 6:36 a.m.