Skip to contents

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, ...)

Arguments

x

an object of class post_array pr post_table

y

ignored

...

passed on to plot.stars()

Examples

library(sf)
arr = as_post_array(polygons)
arr$area = st_area(arr$geometry)
plot(arr)