Skip to content

Commit 9221ef1

Browse files
committedMar 9, 2020
Adjust plotting script to include n_quarantine
1 parent 98c54ae commit 9221ef1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎R/plotting.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ color_vector <- c(
3636
"n_hospital" = "#0072B2", # blue
3737
"n_death" = "#000000", # black
3838
"n_recovered" = "#009E73", # bluish green
39+
"n_quarantine" = "grey",
3940
"total_infected" = "#56B4E9"
4041
)
4142

4243

4344
# Plotting call
44-
p <- ggplot(df_long, aes(x = Time, y = value, color = variable)) +
45+
p <- ggplot(subset(df_long, variable != "total_infected"), aes(x = Time, y = value, color = variable)) +
4546
geom_hline(yintercept = 0) +
4647
geom_line(size = 1.0) + xlab("Time") + ylab("") +
4748
scale_x_continuous(expand = c(0, 0)) +

0 commit comments

Comments
 (0)
Please sign in to comment.