Skip to content
Snippets Groups Projects
Commit a4827724 authored by Christina Azodi's avatar Christina Azodi
Browse files

fix input error with hospital plots

parent e94aa38f
No related branches found
No related tags found
No related merge requests found
...@@ -326,11 +326,11 @@ plot_times <- function(sim) { ...@@ -326,11 +326,11 @@ plot_times <- function(sim) {
#' @importFrom dplyr summarise #' @importFrom dplyr summarise
#' @export #' @export
get_weekly_local <- function(sim, get_weekly_local <- function(sim,
market.share = 0.04, market.share = market.share,
icu_percent = .1, icu_percent = icu_percent,
start_date = ymd("2020-03-21"), start_date = start_date,
time_lim = 90, time_lim = time_lim,
total_population = NULL){ total_population = total_population){
# Get h.num and 95% quantile CIs # Get h.num and 95% quantile CIs
sim_mean <- as.data.frame(sim, out = "mean") sim_mean <- as.data.frame(sim, out = "mean")
......
...@@ -227,5 +227,5 @@ This function takes the following input: ...@@ -227,5 +227,5 @@ This function takes the following input:
scaled down) to reduce computational cost. scaled down) to reduce computational cost.
```{r hospital visualization} ```{r hospital visualization}
plot(baseline_sim, method = "weekly_local", time_lim = 50, start_date = lubridate::ymd("2020-01-01"), return_df = TRUE) plot(baseline_sim, method = "weekly_local", time_lim = 40, start_date = lubridate::ymd("2020-01-01"), return_df = TRUE)
``` ```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment