Description Usage Arguments Value Author(s)
View source: R/CircleCoordinates.R
Get the latitude and longitude coordinates of a circle with a given radius drawn onto the surface of a sphere.
1 2 3 4 5 6 7 8 | CircleCoordinates(
lat0,
lon0,
radius.circle,
radius.sphere = 6357,
n = 100,
return.pi.interval = FALSE
)
|
lat0 |
geographical latitude [degree] of circle centre. |
lon0 |
geographical longitude [degree] of circle centre. |
radius.circle |
radius of the circle; in the same units as
|
radius.sphere |
radius of the sphere on whose surface the circle is drawn; i.e. typically Earth's radius. Default value is Earth's polar radius which gives slightly more accurate results for drawing circles close to either one of the poles. Adjust to equatorial radius for drawing circles in the mid-latitudes. |
n |
number of polar angle increments to draw the circle. |
return.pi.interval |
if |
data frame of circle latitude (lat
) and longitudes
(lon
) in geographical coordinates in degree for the number of
incremental steps specified by n
(given as the polar coordinate
phi
).
Thomas Münch
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.