Learn R Programming

geo (version 1.4-3)

circle.one.point: Find a circle around a point

Description

Through simple approximate geometry the perimeter of a circle around a point given in lat and lon is found

Usage

circle.one.point(lat, lon = NULL, rad, n = 10)

Arguments

lat,lon
Latitude and longitude in decimal degrees.
rad
radius of the circle in nmi
n
number of points on the circle perimeter

Examples

Run this code
## draws a circle around Iceland
geoplot()
geolines(circle.one.point(65,-19,150,n=50),lwd=3,col="red")

Run the code above in your browser using DataLab