| plot.regimes | R Documentation |
Plot Time Series Data with Detected Regime Stability
## S3 method for class 'regimes'
plot(x, points = FALSE, ...)
x |
[ |
points |
[ |
... |
Ignored. |
A ggplot object.
set.seed(123)
ts_data <- stats::arima.sim(list(order = c(1, 1, 0), ar = 0.6), n = 200)
regimes <- detect_regimes(
data = ts_data,
method = "threshold",
sensitivity = "medium"
)
plot(regimes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.