st_plot: Super-thinning Plot

View source: R/nphawkes_functions.R

st_plotR Documentation

Super-thinning Plot

Description

This function exports a plot displaying the performance of the super-thinning procedure.

Usage

st_plot(superthin, method = "superthin", time_label = "Year")

Arguments

superthin

the output from super_thin()

method

chacter string denoting if the residual analysis method utilized was "superthin", "thin", or "superpose"

time_label

character string that provides the frequency of tick marks on the x-axis

Value

a tiered plot with superposed points on the top tier, points that were retained, not thinned, on the middle tier, and points that were thinned on the bottom tier.

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 = T)
st = super_thin(out)
sp = st_plot(st, "superthin")

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