Skip to contents

spatial_plot method for calcAN

Usage

# S3 method for class 'calcAN'
spatial_plot(x, shp, table_type, above_MMT, pal = "Purples")

Arguments

x

an object of class calcAN

shp

an sf shapefile with an appropriate column at which to join

table_type

showing the rate table "rate" or number table "num"

above_MMT

plot attributable numbers above or below the MMT

pal

color palette

Value

a spatial plot showing attributable numbers or rates

Examples

if (FALSE) { # \dontrun{
# after running calcAN on a condPois model with a factor:
an_result <- calcAN(my_model)
spatial_plot(an_result, shp = my_shapefile, table_type = "num", above_MMT = TRUE)
} # }