
Plot change-count vs window with the elbow marker
Source:R/regime-optimal-window.R
plot.RegimeOptimalWindow.RdDiagnostic plot for a detect_regime_optimal_window() result: shows
change_count (and optionally magnitude_mean) against the
trajectory window window, with a vertical line at optimal_window.
Arguments
- x
A
"RegimeOptimalWindow"object.- show_magnitude
Logical; if
TRUE(default), overlaymagnitude_meanon a secondary y axis (right). SetFALSEfor a cleaner change-count-only plot.- theme
A string passed to
.switch_theme().- ...
Additional arguments passed to
.switch_theme().