Skip to content

Commit 1874ae2

Browse files
committed
Improve graphs and mention mask use comparison
1 parent a1a6af2 commit 1874ae2

File tree

7 files changed

+395
-365
lines changed

7 files changed

+395
-365
lines changed

content/blog/2021-01-22-holiday-surveys.Rmd

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ g1 <- travel_normed %>%
123123
scale_x_date(date_breaks = "2 weeks",
124124
date_labels = "%b %d %Y",
125125
date_minor_breaks = "1 week") +
126-
labs(x = "Date", y = "% Out-of-state travel in last 5 days",
126+
labs(x = "Date", y = "% traveled out-of-state in last 5 days",
127127
title = "Relative out-of-state travel by US region",
128128
subtitle = "From Delphi's surveys, conducted through Facebook") +
129129
theme_bw() +
@@ -166,7 +166,7 @@ estimates from the Bureau of Transportation Statistics of 23%. Overall though,
166166
the out-of-state travel reported in the CSS is still down compared to earlier
167167
months in the pandemic.
168168

169-
```{r spent-time, message=FALSE, fig.width=9, out.extra = 'class="wide-figure"'}
169+
```{r spent-time, message=FALSE}
170170
spent_time <- covidcast_signal("fb-survey",
171171
"smoothed_wspent_time_1d",
172172
start_day = start_after_election, end_day = end_day,
@@ -194,11 +194,12 @@ spent_time_stats %>%
194194
scale_x_date(date_breaks = "2 weeks",
195195
date_labels = "%b %d %Y",
196196
date_minor_breaks = "1 week") +
197-
labs(x = "Date", y = "% Spent time with non-household member in past 24h",
198-
title = "Percent surveyed that spent time with a non-household member by US region",
199-
subtitle = "Data from Delphi COVIDcast, delphi.cmu.edu") +
197+
labs(x = "Date", y = "% spent time with non-household member in past 24h",
198+
title = "Percent surveyed that spent time with a non-household member",
199+
subtitle = "7-day rolling average",
200+
caption = "Data from Delphi COVIDcast, delphi.cmu.edu") +
200201
theme_bw() +
201-
theme(legend.position = c(.075,.15)) +
202+
theme(legend.position = c(0.095, 0.2)) +
202203
guides(color = FALSE)
203204
204205
```
@@ -222,7 +223,7 @@ Overall, we don’t see strong evidence in the data of people proactively
222223
quarantining between the Thanksgiving and Christmas holidays to reduce the
223224
potential for community spread of COVID-19.
224225

225-
```{r went-shopping, message=FALSE, fig.width=9, out.extra = 'class="wide-figure"'}
226+
```{r went-shopping, message=FALSE}
226227
shopped <- covidcast_signal("fb-survey",
227228
"smoothed_wshop_1d",
228229
start_day = start_after_election, end_day = end_day,
@@ -251,10 +252,11 @@ shopped_stats %>%
251252
date_labels = "%b %d %Y",
252253
date_minor_breaks = "1 week") +
253254
labs(x = "Date", y = "% Went shopping in past 24h",
254-
title = "Percent surveyed that went shopping recently by US region",
255-
subtitle = "Data from Delphi COVIDcast, delphi.cmu.edu") +
255+
title = "Percent surveyed that went shopping recently",
256+
subtitle = "7-day rolling average",
257+
caption = "Data from Delphi COVIDcast, delphi.cmu.edu") +
256258
theme_bw() +
257-
theme(legend.position = c(.075, .15)) +
259+
theme(legend.position = c(.095, 0.2)) +
258260
guides(color = FALSE)
259261
```
260262

@@ -272,7 +274,7 @@ survey question.
272274

273275
## Preventative Measures and Testing During the US Holidays
274276

275-
```{r wore-mask, message=FALSE, fig.width=9, out.extra = 'class="wide-figure"'}
277+
```{r wore-mask, message=FALSE}
276278
masked <- covidcast_signal("fb-survey",
277279
"smoothed_wwearing_mask",
278280
start_day = start_after_election, end_day = end_day,
@@ -300,11 +302,12 @@ masked_stats %>%
300302
scale_x_date(date_breaks = "2 weeks",
301303
date_labels = "%b %d %Y",
302304
date_minor_breaks = "1 week") +
303-
labs(x = "Date", y = "% Wore a mask in public in past 5 days",
304-
title = "Percent surveyed that wore a mask in public by US region",
305-
subtitle = "Data from Delphi COVIDcast, delphi.cmu.edu") +
305+
labs(x = "Date", y = "% wore a mask in public in past 5 days",
306+
title = "Percent surveyed who reported wearing a mask in public",
307+
subtitle = "7-day rolling average",
308+
caption = "Data from Delphi COVIDcast, delphi.cmu.edu") +
306309
theme_bw() +
307-
theme(legend.position = c(.075, .15)) +
310+
theme(legend.position = c(0.9, 0.2)) +
308311
guides(color = FALSE)
309312
310313
```
@@ -316,7 +319,17 @@ of people who say they wore masks most or all of the time while in public in the
316319
past 5 days increased across the nation prior to Thanksgiving and held steady
317320
through the end of the year (mean ± s.e. of states in region).
318321

319-
```{r tested-recently, message=FALSE, fig.width=9, out.extra = 'class="wide-figure"'}
322+
Note, however, that this can't be directly interpreted to mean that a certain
323+
percentage of people wear masks in public places---the survey question asks
324+
respondents if they wear masks *most* or all of the time in public, and since
325+
mask usage is self-reported, it might be biased. A recent [Preventing Epidemics
326+
comparison](https://preventepidemics.org/covid19/science/weekly-science-review/january-9-15-2020/)
327+
found that this self-reported data tends to give higher rates of mask use when
328+
compared to direct observations of people in public places, such as through
329+
surveillance cameras at stores, but also found that these direct observations
330+
agree that mask use is increasing.
331+
332+
```{r tested-recently, message=FALSE}
320333
tested <- covidcast_signal("fb-survey",
321334
"smoothed_wtested_14d",
322335
start_day = start_after_election, end_day = end_day,
@@ -346,11 +359,12 @@ tested_normed %>%
346359
scale_x_date(date_breaks = "2 weeks",
347360
date_labels = "%b %d %Y",
348361
date_minor_breaks = "1 week") +
349-
labs(x = "Date", y = "% Tested in past 14 days",
350-
title = "Percent surveyed that were tested recently by US region",
351-
subtitle = "Data from Delphi COVIDcast, delphi.cmu.edu") +
362+
labs(x = "Date", y = "% tested in past 14 days",
363+
title = "Percent surveyed that were tested recently",
364+
subtitle = "7-day rolling average",
365+
caption = "Data from Delphi COVIDcast, delphi.cmu.edu") +
352366
theme_bw() +
353-
theme(legend.position = c(.075, .15)) +
367+
theme(legend.position = c(0.095, 0.2)) +
354368
guides(color = FALSE)
355369
356370
```

content/blog/2021-01-22-holiday-surveys.html

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h2>Travel and Other Social Behaviors During US Holidays</h2>
130130
scale_x_date(date_breaks = &quot;2 weeks&quot;,
131131
date_labels = &quot;%b %d %Y&quot;,
132132
date_minor_breaks = &quot;1 week&quot;) +
133-
labs(x = &quot;Date&quot;, y = &quot;% Out-of-state travel in last 5 days&quot;,
133+
labs(x = &quot;Date&quot;, y = &quot;% traveled out-of-state in last 5 days&quot;,
134134
title = &quot;Relative out-of-state travel by US region&quot;,
135135
subtitle = &quot;From Delphi&#39;s surveys, conducted through Facebook&quot;) +
136136
theme_bw() +
@@ -140,8 +140,7 @@ <h2>Travel and Other Social Behaviors During US Holidays</h2>
140140
g2 &lt;- plot(regionmap,
141141
title = &quot;US Regions&quot;,
142142
choro_col = c(&quot;#F8766D&quot;, &quot;#7CAE00&quot;, &quot;#00BFC4&quot;, &quot;#C77CFF&quot;),
143-
choro_params = list(breaks = c(1, 2, 3, 4),
144-
legend_position = &quot;none&quot;)) +
143+
choro_params = list(breaks = c(1, 2, 3, 4))) +
145144
theme(legend.position = &quot;none&quot;)
146145

147146
lay &lt;- rbind(c(1,1,1,2),
@@ -198,13 +197,14 @@ <h2>Travel and Other Social Behaviors During US Holidays</h2>
198197
scale_x_date(date_breaks = &quot;2 weeks&quot;,
199198
date_labels = &quot;%b %d %Y&quot;,
200199
date_minor_breaks = &quot;1 week&quot;) +
201-
labs(x = &quot;Date&quot;, y = &quot;% Spent time with non-household member in past 24h&quot;,
202-
title = &quot;Percent surveyed that spent time with a non-household member by US region&quot;,
203-
subtitle = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
200+
labs(x = &quot;Date&quot;, y = &quot;% spent time with non-household member in past 24h&quot;,
201+
title = &quot;Percent surveyed that spent time with a non-household member&quot;,
202+
subtitle = &quot;7-day rolling average&quot;,
203+
caption = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
204204
theme_bw() +
205-
theme(legend.position = c(.075,.15)) +
205+
theme(legend.position = c(0.095, 0.2)) +
206206
guides(color = FALSE)</code></pre>
207-
<p><img src="/blog/2021-01-22-holiday-surveys_files/figure-html/spent-time-1.svg" width="864" class="wide-figure" /></p>
207+
<p><img src="/blog/2021-01-22-holiday-surveys_files/figure-html/spent-time-1.svg" width="672" /></p>
208208
<p>Through the survey, we also find that more people in many states spent time with
209209
people outside of their household in social gatherings for Thanksgiving and
210210
Christmas when compared to the preceding week. In the above figure, the percent
@@ -250,12 +250,13 @@ <h2>Travel and Other Social Behaviors During US Holidays</h2>
250250
date_labels = &quot;%b %d %Y&quot;,
251251
date_minor_breaks = &quot;1 week&quot;) +
252252
labs(x = &quot;Date&quot;, y = &quot;% Went shopping in past 24h&quot;,
253-
title = &quot;Percent surveyed that went shopping recently by US region&quot;,
254-
subtitle = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
253+
title = &quot;Percent surveyed that went shopping recently&quot;,
254+
subtitle = &quot;7-day rolling average&quot;,
255+
caption = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
255256
theme_bw() +
256-
theme(legend.position = c(.075, .15)) +
257+
theme(legend.position = c(.095, 0.2)) +
257258
guides(color = FALSE)</code></pre>
258-
<p><img src="/blog/2021-01-22-holiday-surveys_files/figure-html/went-shopping-1.svg" width="864" class="wide-figure" /></p>
259+
<p><img src="/blog/2021-01-22-holiday-surveys_files/figure-html/went-shopping-1.svg" width="672" /></p>
259260
<p>Additionally, Thanksgiving and Christmas are major shopping holidays. When asked
260261
if they had gone to the “market, grocery store, or pharmacy” in the past 24
261262
hours, a high percentage of survey respondents responded they had on
@@ -297,19 +298,29 @@ <h2>Preventative Measures and Testing During the US Holidays</h2>
297298
scale_x_date(date_breaks = &quot;2 weeks&quot;,
298299
date_labels = &quot;%b %d %Y&quot;,
299300
date_minor_breaks = &quot;1 week&quot;) +
300-
labs(x = &quot;Date&quot;, y = &quot;% Wore a mask in public in past 5 days&quot;,
301-
title = &quot;Percent surveyed that wore a mask in public by US region&quot;,
302-
subtitle = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
301+
labs(x = &quot;Date&quot;, y = &quot;% wore a mask in public in past 5 days&quot;,
302+
title = &quot;Percent surveyed who reported wearing a mask in public&quot;,
303+
subtitle = &quot;7-day rolling average&quot;,
304+
caption = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
303305
theme_bw() +
304-
theme(legend.position = c(.075, .15)) +
306+
theme(legend.position = c(0.9, 0.2)) +
305307
guides(color = FALSE)</code></pre>
306-
<p><img src="/blog/2021-01-22-holiday-surveys_files/figure-html/wore-mask-1.svg" width="864" class="wide-figure" /></p>
308+
<p><img src="/blog/2021-01-22-holiday-surveys_files/figure-html/wore-mask-1.svg" width="672" /></p>
307309
<p>While people in the US may have traveled more, shopped more, and spent more time
308310
with non-household members during the holidays, they also reported participating
309311
in preventative measures in public to a greater degree. For example, the percent
310312
of people who say they wore masks most or all of the time while in public in the
311313
past 5 days increased across the nation prior to Thanksgiving and held steady
312314
through the end of the year (mean ± s.e. of states in region).</p>
315+
<p>Note, however, that this can’t be directly interpreted to mean that a certain
316+
percentage of people wear masks in public places—the survey question asks
317+
respondents if they wear masks <em>most</em> or all of the time in public, and since
318+
mask usage is self-reported, it might be biased. A recent <a href="https://preventepidemics.org/covid19/science/weekly-science-review/january-9-15-2020/">Preventing Epidemics
319+
comparison</a>
320+
found that this self-reported data tends to give higher rates of mask use when
321+
compared to direct observations of people in public places, such as through
322+
surveillance cameras at stores, but also found that these direct observations
323+
agree that mask use is increasing.</p>
313324
<pre class="r"><code>tested &lt;- covidcast_signal(&quot;fb-survey&quot;,
314325
&quot;smoothed_wtested_14d&quot;,
315326
start_day = start_after_election, end_day = end_day,
@@ -339,13 +350,14 @@ <h2>Preventative Measures and Testing During the US Holidays</h2>
339350
scale_x_date(date_breaks = &quot;2 weeks&quot;,
340351
date_labels = &quot;%b %d %Y&quot;,
341352
date_minor_breaks = &quot;1 week&quot;) +
342-
labs(x = &quot;Date&quot;, y = &quot;% Tested in past 14 days&quot;,
343-
title = &quot;Percent surveyed that were tested recently by US region&quot;,
344-
subtitle = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
353+
labs(x = &quot;Date&quot;, y = &quot;% tested in past 14 days&quot;,
354+
title = &quot;Percent surveyed that were tested recently&quot;,
355+
subtitle = &quot;7-day rolling average&quot;,
356+
caption = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
345357
theme_bw() +
346-
theme(legend.position = c(.075, .15)) +
358+
theme(legend.position = c(0.095, 0.2)) +
347359
guides(color = FALSE)</code></pre>
348-
<p><img src="/blog/2021-01-22-holiday-surveys_files/figure-html/tested-recently-1.svg" width="864" class="wide-figure" /></p>
360+
<p><img src="/blog/2021-01-22-holiday-surveys_files/figure-html/tested-recently-1.svg" width="672" /></p>
349361
<p>Several news agencies reported that the demand for COVID-19 tests <a href="https://www.wsj.com/articles/how-do-i-get-a-covid-19-test-before-thanksgiving-11605918004">surged before
350362
Thanksgiving</a>.
351363
While this was in large part due to rising COVID-19 cases nationwide, it is also

0 commit comments

Comments
 (0)