From 8e4929e6292f0e9ca6c24339918aa1e1df429a04 Mon Sep 17 00:00:00 2001 From: mattbk Date: Sun, 21 Apr 2024 16:13:03 -0500 Subject: [PATCH] Show source on state plots. --- bin/data-plots.R | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/data-plots.R b/bin/data-plots.R index 8c30eb9..4b21ef0 100644 --- a/bin/data-plots.R +++ b/bin/data-plots.R @@ -213,7 +213,8 @@ ggsave("plots/class-over-time-facet.png", width = 15, height = 9) ##### By state ##### ggplot(data = d_state_total_long, aes(x = Date, - y = Total)) + + y = Total, + color = source_name)) + geom_line() + geom_point(size = 0.3) + facet_wrap(~State.Territory, @@ -263,7 +264,8 @@ ggsave("plots/cities-over-time.png", width = 15, height = 9) ggplot(data = city, aes(x = Date, y = Count, - group = city_label)) + + group = city_label, + color = source_name)) + geom_line() + geom_point(size = 0.3) + facet_wrap(~city_label,