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

fix bug with plotting known counts in all experiment facets

parent 2a9909ff
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ plot_models <- function(sims = baseline_sim,
} else (
plot_df %>% ggplot(aes(x = Date, y = count, colour = compartment,
linetype = sim)) +
facet_grid(reo_exp(experiment) ~ .) +
facet_grid(reo_exp(experiment) ~ ., scale = 'free') +
scale_x_date(date_breaks = "1 week", date_labels = "%m-%d") +
geom_line(size = 1.5, alpha = 0.8) +
scale_colour_manual(values = compcols, labels = complabels) +
......@@ -186,7 +186,7 @@ plot_models <- function(sims = baseline_sim,
} else (
plot_df %>% ggplot(aes(x = Date, y = count+1, colour = compartment,
linetype = sim)) +
facet_grid(reo_exp(experiment) ~ .) +
facet_grid(reo_exp(experiment) ~ ., scale = 'free') +
scale_y_continuous(trans = trans) +
scale_x_date(date_breaks = "1 week", date_labels = "%m-%d") +
geom_line(size = 1.5, alpha = 0.8) +
......
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