sl.plot.lonlatlabels: Plot Longitude-Latitude Labels

sl.plot.lonlatlabelsR Documentation

Plot Longitude-Latitude Labels

Description

Plot longitude and latitude labels over a spheRlab plot.

Usage

sl.plot.lonlatlabels(plot.init.res, lat.lons = NULL, lat.lats = NULL, lon.lons = NULL, lon.lats = NULL, col = "grey", cex = 1)

Arguments

plot.init.res

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

lat.lons

a numeric vector specifying at which longitudes (degrees east) latitude labels are to be drawn.

lat.lats

a numeric vector specifying at which latitudes (degrees north) latitude labels are to be drawn.

lat.offsetlatlon

a 2-element numeric vector specifying the degrees latitude and longitude by which latitude labels are to be shifted.

lon.lons

a numeric vector specifying at which longitudes (degrees east) longitude labels are to be drawn.

lon.lats

a numeric vector specifying at which latitudes (degrees north) longitude labels are to be drawn.

lon.offsetlatlon

a 2-element numeric vector specifying the degrees latitude and longitude by which longitude labels are to be shifted.

col

the color to be used for the labels.

cex

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

Note

This function is used by sl.plot.lonlatgrid if labels=TRUE is set in that function, with a simple way to determine the placement of labels automatically and with few arguments to control the behaviour. For more flexibility, this function can be used directly.

Author(s)

Helge Goessling

See Also

sl.plot.lonlatgrid

Examples

## To be provided ...

helgegoessling/spheRlab documentation built on April 8, 2024, 8:34 a.m.