sl.vis.shift.rot: Check Visibility, Shift, and Rotate Points

Description Usage Arguments Details Value Note Author(s)

View source: R/sl.vis.shift.rot.R

Description

Check the visibility, shift, and rotate points for a spheRlab plot.

Usage

1
sl.vis.shift.rot(plot.init.res, lon, lat)

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.

lat

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

Details

This function is intended mainly for internal usage.

Value

A list with the following elements:

x

a vector of length N specifying the plot-projection x-coordinates of the points.

y

a vector of length N specifying the plot-projection y-coordinates of the points.

rot.lon

a vector of length N specifying the post-rotation longitudes of the points.

rot.lat

a vector of length N specifying the post-rotation latitudes of the points.

visible

a vector of length N with logical values indicating the visibility of the points.

Note

This function is used by sl.plot.lines, sl.plot.polygon, and sl.plot.text.

Author(s)

Helge Goessling


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