Compare commits
No commits in common. "e2bdd91b6c781ff336151bc9bd0254d6254c64b9" and "05580d4c48855ac71a9d1365155354c9f2e08b40" have entirely different histories.
e2bdd91b6c
...
05580d4c48
7
.gitignore
vendored
7
.gitignore
vendored
@ -9,11 +9,8 @@ COVID.py
|
|||||||
#ignore all the data files
|
#ignore all the data files
|
||||||
data/*
|
data/*
|
||||||
|
|
||||||
#except the population one
|
|
||||||
!data/co-est2020-alldata.csv
|
|
||||||
|
|
||||||
#ignore the figure files
|
#ignore the figure files
|
||||||
figures/*
|
figures/*
|
||||||
|
|
||||||
#except an example
|
#except the population one
|
||||||
!figures/select_active_cases.png
|
!data/co-est2020-alldata.csv
|
||||||
|
6
COVID.R
6
COVID.R
@ -416,12 +416,12 @@ ggsave(filename = "WI_active_cases.png" ,
|
|||||||
|
|
||||||
ggplot() +
|
ggplot() +
|
||||||
geom_line(data = us_county_data %>%
|
geom_line(data = us_county_data %>%
|
||||||
filter(county_state %in% c("Clallam, Washington", "Cook, Illinois", "Milwaukee, Wisconsin", "Dane, Wisconsin", 'Salt Lake, Utah')),
|
filter(county_state %in% c("Clallam, Washington", "Cook, Illinois", "Milwaukee, Wisconsin", "Dane, Wisconsin", "Alameda, California", 'Salt Lake, Utah')),
|
||||||
aes(x = date,
|
aes(x = date,
|
||||||
y = active_estimate,
|
y = active_estimate,
|
||||||
color = county)) +
|
color = county)) +
|
||||||
geom_label_repel(data = us_county_data %>%
|
geom_label_repel(data = us_county_data %>%
|
||||||
filter(county_state %in% c("Clallam, Washington", "Cook, Illinois", "Milwaukee, Wisconsin", "Dane, Wisconsin", 'Salt Lake, Utah'),
|
filter(county_state %in% c("Clallam, Washington", "Cook, Illinois", "Milwaukee, Wisconsin", "Dane, Wisconsin", "Alameda, California", 'Salt Lake, Utah'),
|
||||||
date %in% maxdate),
|
date %in% maxdate),
|
||||||
aes(x = date + 0.5,
|
aes(x = date + 0.5,
|
||||||
y = active_estimate,
|
y = active_estimate,
|
||||||
@ -454,7 +454,7 @@ ggplot() +
|
|||||||
plot.subtitle = element_text(color = "grey50"),
|
plot.subtitle = element_text(color = "grey50"),
|
||||||
plot.caption = element_text(color = "grey50")) +
|
plot.caption = element_text(color = "grey50")) +
|
||||||
coord_cartesian(ylim = c(0,NA))
|
coord_cartesian(ylim = c(0,NA))
|
||||||
ggsave(filename = "select_active_cases.png" ,
|
ggsave(filename = "Important_active_cases.png" ,
|
||||||
path = paste(getwd(),"/figures/", sep = ""),
|
path = paste(getwd(),"/figures/", sep = ""),
|
||||||
device = "png",
|
device = "png",
|
||||||
width = 11,
|
width = 11,
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 507 KiB |
Loading…
x
Reference in New Issue
Block a user