sl.plot.lines: Plot Lines

Description Usage Arguments Details Author(s) See Also Examples

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

Description

Plot lines into a spheRlab plot.

Usage

1
sl.plot.lines(plot.init.res, lon, lat, col = "black", lwd = 1, lty = 1, ignore.visibility = FALSE)

Arguments

plot.init.res

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

lon

a vector of length N specifying the longitudes of the points defining the lines.

lat

a vector of length N specifying the latitudes of the points defining the lines.

col

a line colour.

lwd

a line width.

lty

a line type.

ignore.visibility

a logical value indicating whether or not the line shall be attempted to be drawn completely even if it's classified partly or fully invisible, that is, outside the plot domain.

Details

If lon and lat contain no NAs, N-1 lines defined by any adjacent pairs of coordinates are drawn. Separate line segments can be drawn with a single call of sl.plot.lines by concatenating their coordinate vectors with NAs inbetween.

This is one of the lowest-level plotting functions of spheRlab. First the visibility of the points is checked, which depends on the projection and plot domain boundaries. Lines for which both end points are invisible are not drawn. (This means that lines where only a middle segment is visible are not drawn!) Then for partly visible lines an intersection point with the boundary is computed and only the visible part is drawn. Of course the completely visible lines are drawn as well.

Author(s)

Helge Goessling

See Also

sl.plot.polygon, sl.plot.points

Examples

1
## To be provided ...

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