Description Usage Arguments Examples
Works for multipolygon simple features (see package 'sf') only.
1  | 
data | 
 data set  | 
... | 
 one or more columns to extract (one is tested, you're on your own with multiple)  | 
1 2 3 4  | library(sf)
nc <- st_read(system.file("shape/nc.shp", package="sf"))
gnc <- unnest_sf(nc, geometry)
gnc %>% ggplot(aes(x = long, y = lat, group = group)) + geom_polygon()
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.