Plots the changing or summary geometries in a post_array or post_table as facets defined by the first non spatial dimension. Other dimensions are discarded.
Usage
autoplot.post_array(
object,
attribute = NULL,
max_plot = 9,
geom_sum = FALSE,
...
)
autoplot.post_table(
object,
attribute = NULL,
max_plot = 9,
geom_sum = FALSE,
...
)
Details
See ggplot2::autoplot()
.
Examples
library(ggplot2)
library(sf)
arr = as_post_array(polygons, geometry_summary = summarise_geometry_union)
arr$area = st_area(arr$geometry)
autoplot(arr, area)
autoplot(arr, area, geom_sum = TRUE)
autoplot(arr, area, max_plot = 3)
tab = as_post_table(polygons, geometry_summary = summarise_geometry_union)
#> Warning: st_centroid assumes attributes are constant over geometries
autoplot(tab, gid)
autoplot(tab, gid, geom_sum = TRUE)