sl.plot.text | R Documentation |
Plot simple text into a spheRlab plot
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, srt = 0)
plot.init.res |
a spheRlab plot specifics list as returned by |
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 |
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 |
offset |
when |
vfont |
|
cex |
numeric character expansion factor; multiplied by |
font |
If |
srt |
a scalar specifying the rotation (counter-clockwise) in degrees. Default is |
Plots simple text at lon-lat locations, using the R
function text
. Numerous arguments are simply passed to text
.
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
.
Helge Goessling
## To be provided ...
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.