Learn R Programming

retistruct (version 0.6.3)

sinusoidal: Sinusoidal projection

Description

Sinusoidal projection

Usage

sinusoidal(
  r,
  proj.centre = cbind(phi = 0, lambda = 0),
  lambdalim = NULL,
  lines = FALSE,
  ...
)

Arguments

r

Latitude-longitude coordinates in a matrix with columns labelled phi (latitude) and lambda (longitude). Alternatively string "boundary", indicating that boundary of projection should be drawn.

proj.centre

Location of centre of projection as matrix with column names phi (elevation) and lambda (longitude). Currently only longitude is used by this function.

lambdalim

Limits of longitude to plot

lines

If this is TRUE create breaks of NAs when lines cross the limits of longitude. This prevents lines crossing the centre of the projection.

...

Arguments not used by this projection.

Value

Two-column matrix with columns labelled x and y of locations of projection of coordinates on plane

References

http://en.wikipedia.org/wiki/Map_projection, http://mathworld.wolfram.com/SinusoidalProjection.html