prepare_plot_datasets: Prepare the Plotting Datasets

Description Usage Arguments Value Examples

View source: R/plotting_functions.R

Description

This function prepares the model and empirical datasets and binds them together

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
prepare_plot_datasets(
  us_model_file_name = NULL,
  state_model_file_name = NULL,
  county_model_file_name = NULL,
  model_filter_dates = NULL,
  empirical_data_type = NULL,
  csse_repo_path = NULL,
  hospscaler = NULL,
  updategit = F
)

Arguments

us_model_file_name

default is NULL

state_model_file_name

default is NULL

county_model_file_name

default is NULL

model_filter_dates

default is NULL

empirical_data_type

default is NULL, what is the source of the empirical data, either csse or usafacts or a file name/path to custom csv

csse_repo_path

location of the csse repo (default NULL)

hospscaler

hosp scaler to get infection estimate, defaults to NULL

updategit

default is FALSE; should the local csse git repo be queried for possible update?

Value

Returns a list of dataframes, one for each model file name provided. Each frame will contain the combined data from both the model and the empirical data

Examples

1
prepare_plot_datasets("usfile.csv", "statefile.csv", model_filter_dates=c("2020-03-01", "2020-06-15"), "usafacts","repo_dir/")

lmullany/iddplotting documentation built on July 26, 2020, 8:05 p.m.