Skip to contents

spatial_plot method for condPois_2stage

Usage

# S3 method for class 'condPois_2stage'
spatial_plot(x, shp, exposure_val, RRlimits = NULL)

Arguments

x

an object of class condPois_2stage

shp

an sf shapefile with an appropriate column at which to join

exposure_val

exposure value at which to plot

Value

a ggplot object

Examples

if (FALSE) { # \dontrun{
  # set up exposure matrix and outcome table first (see condPois_2stage example)
  model <- condPois_2stage(ma_exposure_matrix, ma_outcomes_tbl, global_cen = 20)
  spatial_plot(model, shp = ma_shp, exposure_val = 30.0)
} # }