Learn R Programming

geo (version 1.4-3)

geochull: Convex hull of a set of positions

Description

Finds the convex hull of a set of positions in lat and lon.

Usage

geochull(lat, lon = NULL)

Arguments

lat,lon
Position(s) as decimal degrees latitude and longitude. If 'lat' is 'list' its components 'lat$lat' and 'lat$lon' are used for 'lat' and 'lon'.

Value

List with components lat and lon of the convex hull of the input.

See Also

Proj, invProj, chull

Examples

Run this code
# draws the convex hull of Iceland's coastline.
geoplot()
geolines(geochull(island))

Run the code above in your browser using DataLab