geochull: Convex hull of a set of positions

Description Usage Arguments Value See Also Examples

View source: R/geochull.R

Description

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

Usage

1
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

1
2
3
# draws the convex hull of Iceland's coastline.
geoplot()
geolines(geochull(island))

Example output

Loading required package: maps
Loading required package: mapdata

geo documentation built on May 29, 2017, 5:36 p.m.