df_spatial | R Documentation |
Create a ggplot-friendly data frame from a spatial object
df_spatial(x, ...)
x |
A spatial object |
... |
Passed to specific methods |
A tibble with coordinates as x
and y
,
features as feature_id
, and parts as part_id
.
load_longlake_data(which = c("longlake_osm", "longlake_depthdf"))
df_spatial(longlake_osm)
df_spatial(longlake_depthdf)
df_spatial(as(longlake_depthdf, "Spatial"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.