PlotConvexHull: Plots the minimum convex hull of a set of coordinates

Description Usage Arguments Value Note Examples

View source: R/PlotConvexHull.R

Description

Plots the minimum convex hull of a set of coordinates

Usage

1
PlotConvexHull(xcoord, ycoord, lcolor = "blue")

Arguments

xcoord

- Array of x-coordinates or longitudinal values

ycoord

- Array of y-coordinates or latitudinal values

lcolor

- String or integer value indicating the color of the convex hull boundary lines

Value

Plots a minimum convex hull

Note

This function does not account for the possibility of points crossing the prime meridian and in cases where this occurs the convex hull shown will be incorrect

Examples

1
2
3
longs<-c(20,20,40,40)
lats<-c(-5,5,-5,5)
PlotConvexHull(xcoord=longs,ycoord=lats)

GeoRange documentation built on June 20, 2017, 9:03 a.m.