Title: | Create Those Geographic Circles |
---|---|
Description: | Create geographic circles, note this is not the Tissot Inidicatrix see hypertidy/tissot for that. |
Authors: | Michael D. Sumner [aut, cre] |
Maintainer: | Michael D. Sumner <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.1 |
Built: | 2024-11-30 07:50:02 UTC |
Source: | https://github.com/hypertidy/earthcircle |
A circle on the ground for every input longitude,latitude.
earthcircle( x, y = NULL, scale = 3 * 1852 * 60, ..., n = 36, from = 0, to = 2 * pi )
earthcircle( x, y = NULL, scale = 3 * 1852 * 60, ..., n = 36, from = 0, to = 2 * pi )
x |
longitude of central location for circle, or lon,lat together in matrix, data frame, or list |
y |
latitude of location (ignored if 'x' includes y) |
scale |
the scale of the circle, large enough default to see on world maps |
... |
ignored currently |
n |
the number of coordinates to provide each circle |
from |
the minimum radial angle (default 0) |
to |
the maximum radial angle |
matrix of circle coordinates (separated by NA rows)
x <- earthcircle(cbind(c(0, -50), c(0, -90)), scale = 1e6, from = 0, to = pi) plot(earthcircle:::.prj(x, "+proj=laea +lat_0=-90"), asp = 1, type = "l")
x <- earthcircle(cbind(c(0, -50), c(0, -90)), scale = 1e6, from = 0, to = pi) plot(earthcircle:::.prj(x, "+proj=laea +lat_0=-90"), asp = 1, type = "l")