PlotConvexHull {GeoRange} | R Documentation |
Plots the minimum convex hull of a set of coordinates
Description
Plots the minimum convex hull of a set of coordinates
Usage
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
longs<-c(20,20,40,40)
lats<-c(-5,5,-5,5)
PlotConvexHull(xcoord=longs,ycoord=lats)
[Package GeoRange version 0.1.0 Index]