
Plot time trend
plot_trend.RdDraws a line-and-point chart of the measure over ref_date, one coloured
series per group. When toggle_growth is TRUE the y-axis is formatted as a
baseline index with a dashed reference line at 100.
Arguments
- data
Data frame with
ref_dateand the y-axis column, as returned bycompute_trend_summary()and optionallyapply_baseline_index().- group_col
Character. Column to group by, or
"ref_date"for no grouping.- toggle_growth
Logical. Format the y-axis as a baseline index. Default
FALSE.- y_col
Character. Column to plot on the y-axis. Default
"value".- y_label
Character. y-axis label, used when
toggle_growthisFALSE. Default"Value".