View source: R/nphawkes_functions.R
br_plot | R Documentation |
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.
br_plot(model, vals_include = FALSE)
model |
the output from |
vals_include |
if TRUE, the background rate values will be printed on the map |
a ggplot of the background rates as a heat map
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.