plot_timeseries: Time Series Plot
Description
Creates a time series plot with optional trend line and change point detection.
Usage
plot_timeseries(
data,
var,
time = NULL,
show_trend = TRUE,
highlight_changes = TRUE
)
Arguments
- data
Data frame.
- var
Variable name to plot.
- time
Time variable name.
- show_trend
Add trend line?
- highlight_changes
Highlight potential structural breaks?