Plots a post_array with the default plot.stars()
function by taking the first
non-spatial attribute. The summary geometry is used for plotting.
When no non-spatial attribute is available, the plot function returns an error.
Try autoplot.post_array()
to achieve those type of plots and to plot changing
geometries.
Usage
# S3 method for class 'post_array'
plot(x, y, ...)
# S3 method for class 'post_table'
plot(x, y, ...)
Examples
library(sf)
arr = as_post_array(polygons)
arr$area = st_area(arr$geometry)
plot(arr)