orthproj: Project lat/long to x-y in orthographic projection.

Description Usage Arguments

View source: R/draw_land.R

Description

This function projects latitude/longitude to an x–y plane (with ranges -1 to 1) using an orthographic projection. It also determines whether points are in the front or at the back of the globe, and it can remove the back.

Usage

1
orthproj(lat, long, cenlat, cenlong, remove_back = FALSE)

Arguments

lat

Vector of latitudes, in degrees.

long

Vector of longitudes, in degrees

cenlat

Center latitude of projected earth.

cenlong

Center longitude of projected earth.

remove_back

Boolean indicating whether the back of the globe should be removed.


clauswilke/dviz.supp documentation built on Aug. 25, 2020, 2:12 a.m.