plot_intensity: Plot the intensity of an NHPP fit

View source: R/mod_nhpp.R

plot_intensityR Documentation

Plot the intensity of an NHPP fit

Description

Plot the intensity of an NHPP fit

Usage

plot_intensity(x, ...)

Arguments

x

An NHPP model returned by fit_nhpp()

...

currently ignored

Value

A ggplot2::ggplot() object

Examples

# Plot the estimated intensity function
plot_intensity(fit_nhpp(DataCPSim, tau = 826))

# Segment a time series using PELT
mod <- segment(bogota_pm, method = "pelt")

# Plot the estimated intensity function for the NHPP model using the 
# changepoints found by PELT
plot_intensity(fit_nhpp(bogota_pm, tau = changepoints(mod)))


tidychangepoint documentation built on April 4, 2025, 4:31 a.m.