Three-panel plot of levels, index, and growth rates
plot_comp_3.Rd
Three-panel plot of levels, index, and growth rates
Usage
plot_comp_3(
x,
base_date = as.character(Sys.Date() - lubridate::years(10)),
rng_start = as.character(Sys.Date() - lubridate::years(10)),
rng_end = as.character(Sys.Date() + lubridate::years(2)),
height = 300,
width = 900,
yoy_gr = TRUE,
gr_bar = FALSE
)
Arguments
- x
ts-boxable object to plot
- base_date
base period for the indexed series ("YYYY-MM-DD")
- rng_start
start of the zoom range ("YYYY-MM-DD")
- rng_end
end of the zoom range ("YYYY-MM-DD")
- height
height of a single panel (px)
- width
width of a single panel (px)
- yoy_gr
year-over-year (default) or annualized growth
- gr_bar
show bars or line (default) for the growth series