Description Usage Arguments Details Value See Also Examples
ptcirc
creates a data frame of points forming a circle around a point.
1 | ptcirc(lonlatpoint, radius)
|
lonlatpoint |
Numeric vector. A set of longitude and latitude pairs (decimal degrees), in that order. Can be a data frame or matrix, but the first column must be the longitude and the second must be latitude. |
radius |
Numeric. Radius of desired circle, in m. |
The function was adopted from an answer on R-Help, 20061107, by Arien Lam https://stat.ethz.ch/pipermail/r-help/2006-November/116851.html. Each point is the place where you end up if you travel a certain distance along a great circle, which is uniquely defined by a point (your starting point) and an angle with the meridian at that point (your direction).
Output is a data frame with longitude, latitude, and "circle" columns. The circle column demarcates circles belonging to different Lon/Lat pairs.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.