Creates a set of time series plots of the results.
plot_time_series(
df,
settings = settings,
n_col = 3,
n_sep = 5,
highlighted_area = NULL,
plot_start = NULL,
plot_end = NULL,
file_path = NULL,
title = TRUE,
save = TRUE,
device = "jpg",
width = 10,
height = 3,
units = "in"
)
nothing
list with model setting, in the format returned by the
function initialize_settings
number of columns for grid plots
increments of x axis ticks in years
data frame with two columns called start
and
end
containing start and end date, e.g. 1990.25
and
1992.75
for 1990 Q2 until 1992 Q4
(only used if plot_type = "timeseries"
)
start of x axis in years, e.g., 1990.5
(only used if
plot_type = "timeseries"
)
end of x axis in years, e.g., 2010.25
(only used if
plot_type = "timeseries"
)
file path for plots
boolean indicating if plots should contain titles
boolean indicating if plots should be saved, if FALSE
, the
plots will be printed instead, default is save = FALSE
(ignored if
file_path
is provided)
character string with format used in ggsave
plot width in units
, for grid plots adjusted for the
number of plot columns n_col
plot height in units
, for grid plots adjusted for the
number of plot rows implied by n_col
units for plot size ("in", "cm", "mm", or "px"
)