points_to_convexhull | R Documentation |
Compute the convex hull of a set of points
points_to_convexhull(x)
x |
sf object with geometry of type POINT |
sf POLYGON table
## Not run:
pts <- sf::read_sf(system.file("datasets/penbay-points.gpkg", package = 'twinkle'))
ch <- points_to_mesh(pts)
sst <- stars::read_stars(system.file("datasets/20140601-20140630-sst.tif", package = "twinkle"))
plot(sst[,,,1],
main = "sst 2014-01-01",
reset = FALSE,
add.geom = list(sf::st_geometry(pts), col = 'blue', pch = 19))
plot(sf::st_geometry(ch), add = TRUE, border = 'orange', lwd = 2, col = NA)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.