br_plot: Plot of nonstationary background rate over space

View source: R/nphawkes_functions.R

br_plotR Documentation

Plot of nonstationary background rate over space

Description

This function exports a heat map of the background rate of a nonstationary background rate over space, and is paired with the misd() function when a nonstationary background rate is specified.

Usage

br_plot(model, vals_include = FALSE)

Arguments

model

the output from misd()

vals_include

if TRUE, the background rate values will be printed on the map

Value

a ggplot of the background rates as a heat map

Examples

data("hm.csv")
out = misd(dates = hm$t,
   ref_date = "1999-10-16",
   lat = hm$lat,
   lon = hm$lon,
   marks = hm$m,
   time_breaks = c(0,0.1, 0.5, 1,7,93,600),
   space_breaks = c(0,0.5, 1, 10, 25, 100),
   mark_breaks = c(3, 3.1,3.3, 4, 5, 8),
   just_times = TRUE,
   nonstat_br = TRUE)
br_p = br_plot(out, vals_include = TRUE)


boydpe/nphawkes documentation built on March 31, 2022, 11:03 a.m.