Skip to content

Commit

Permalink
Update Fig 1 and S1 y axis scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob committed Aug 11, 2020
1 parent d40651b commit bd0c2cf
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Binary file modified Figure1.pdf
Binary file not shown.
Binary file modified Figure1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Figure2.pdf
Binary file not shown.
Binary file modified FigureS1.pdf
Binary file not shown.
12 changes: 6 additions & 6 deletions R/nyt_county.R
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ bb1 = ggplot(cv_ex %>% filter(date == last_day) %>% filter(!is.na(pop))) +
geom_density(aes(x=wc2.1_2.5m_tmax_03, weight=(cases/pop)/sum(cases/pop)), colour='darkred', fill='darkred', alpha=0.1)+
geom_density(data=all_ex2, aes(x=wc2.1_2.5m_tmax_03, weight=pop/sum(pop)), colour='darkblue', fill='darkblue', alpha=0.1) +
theme_minimal() +
ylim(c(0, 0.09)) +
ylim(c(0, 0.11)) +
xlab('Max Temparature (C)') +
ylab('Density')

Expand All @@ -270,15 +270,15 @@ bb2 = ggplot(cv_ex %>% filter(date == last_day - 14) %>% filter(!is.na(pop))) +
geom_density(aes(x=wc2.1_2.5m_tmax_03, weight=(cases/pop)/sum(cases/pop)), colour='darkred', fill='darkred', alpha=0.1)+
geom_density(data=all_ex2, aes(x=wc2.1_2.5m_tmax_03, weight=pop/sum(pop)), colour='darkblue', fill='darkblue', alpha=0.1) +
theme_minimal() +
ylim(c(0, 0.09)) +
ylim(c(0, 0.11)) +
xlab('Max Temperature (C)') +
ylab('Density')

bb3 = ggplot(cv_ex %>% filter(date == last_day - 28) %>% filter(!is.na(pop))) +
geom_density(aes(x=wc2.1_2.5m_tmax_03, weight=(cases/pop)/sum(cases/pop)), colour='darkred', fill='darkred', alpha=0.1)+
geom_density(data=all_ex2, aes(x=wc2.1_2.5m_tmax_03, weight=pop/sum(pop)), colour='darkblue', fill='darkblue', alpha=0.1) +
theme_minimal() +
ylim(c(0, 0.09)) +
ylim(c(0, 0.11)) +
xlab('Max Temperature (C)') +
ylab('Density')

Expand Down Expand Up @@ -367,7 +367,7 @@ d1 = ggplot(cv_ex %>% filter(date == last_day) %>% filter(!is.na(pop))) +
geom_density(aes(x=wc2.1_2.5m_vapr_03, weight=(cases/pop)/sum(cases/pop)), colour='darkred', fill='darkred', alpha=0.1)+
geom_density(data=all_ex2, aes(x=wc2.1_2.5m_vapr_03, weight=pop/sum(pop)), colour='darkblue', fill='darkblue', alpha=0.1) +
theme_minimal() +
ylim(c(0, 2.5)) +
ylim(c(0, 2.75)) +
xlab('Water Vapor Pressure (kPa)') +
ylab('Density')

Expand All @@ -377,15 +377,15 @@ d2 = ggplot(cv_ex %>% filter(date == last_day - 14) %>% filter(!is.na(pop))) +
geom_density(aes(x=wc2.1_2.5m_vapr_03, weight=(cases/pop)/sum(cases/pop)), colour='darkred', fill='darkred', alpha=0.1)+
geom_density(data=all_ex2, aes(x=wc2.1_2.5m_vapr_03, weight=pop/sum(pop)), colour='darkblue', fill='darkblue', alpha=0.1) +
theme_minimal() +
ylim(c(0, 2.5)) +
ylim(c(0, 2.75)) +
xlab('Water Vapor Pressure (kPa)') +
ylab('Density')

d3 = ggplot(cv_ex %>% filter(date == last_day - 28) %>% filter(!is.na(pop))) +
geom_density(aes(x=wc2.1_2.5m_vapr_03, weight=(cases/pop)/sum(cases/pop)), colour='darkred', fill='darkred', alpha=0.1)+
geom_density(data=all_ex2, aes(x=wc2.1_2.5m_vapr_03, weight=pop/sum(pop)), colour='darkblue', fill='darkblue', alpha=0.1) +
theme_minimal() +
ylim(c(0, 2.5)) +
ylim(c(0, 2.75)) +
xlab('Water Vapor Pressure (kPa)') +
ylab('Density')

Expand Down

0 comments on commit bd0c2cf

Please sign in to comment.