Creates a Thiessen/Voronoi polygon shapefile.
Arguments
- gaugeCoords
SF file with point data within.
- catchment
Set as null, optional bounding box polygon derived from catchment polygon which is useful for large catchments
Examples
library(riskyData)
data(crowle); data(bickley); data(barnhurst); data(hollies); data(ledbury);
data(bettwsYCrwyn); data(bewdCatch)
# Obtain gauge coordinates
gcs <- getCoords(crowle,
bickley,
barnhurst,
hollies,
ledbury,
bettwsYCrwyn)
bewdTeeSun <- teeSun(gaugeCoords = gcs, catchment = bewdCatch)
leaflet(bewdTeeSun) %>%
addTiles() %>%
addPolygons()
#> Error in addPolygons(.): could not find function "addPolygons"
