Description Usage Arguments Value Examples
View source: R/plotting_functions.R
This function prepares the model and empirical datasets and binds them together
1 2 3 4 5 6 7 8 9 10 |
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? |
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
1 | prepare_plot_datasets("usfile.csv", "statefile.csv", model_filter_dates=c("2020-03-01", "2020-06-15"), "usafacts","repo_dir/")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.