Description Usage Arguments Value Examples
Extract centroid coordinates as a matrix of an sf polygon object for plotting a connectivity graph
1 |
x |
sf object |
matrix of lon/lat coordinates
1 2 3 4 5 | coords <- st_centroid_coords(ncovr)
ncovr_rook <- st_rook(ncovr)
rook_nb <- st_as_nb(ncovr_rook)
plot(rook_nb, coords, lwd=.2, col="blue", cex = .5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.