Skip to content

Commit bd7ec32

Browse files
committed
remove warning 2020-12-10-masks-public
1 parent 4da2286 commit bd7ec32

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

content/blog/2020-12-10-masks-public.Rmd

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ District of Columbia, Massachusetts, and New York), mask usage is among the
7474
highest in the country; in the other three (South Dakota, Idaho, and Wyoming),
7575
it's among the lowest.
7676

77-
```{r state_masks_time, message=FALSE}
77+
```{r state_masks_time, message=FALSE, warning=FALSE}
7878
library(covidcast)
7979
library(dplyr)
8080
library(ggplot2)
@@ -117,7 +117,7 @@ states---might make you wonder: If mask usage is over 80% in most states and
117117
over 90% in many, why does the rate of new COVID cases in the United States
118118
currently look like this?
119119

120-
```{r national_cases_time, message=FALSE}
120+
```{r national_cases_time, message=FALSE, warning=FALSE}
121121
cases <- covidcast_signal(
122122
"indicator-combination", "confirmed_7dav_incidence_num",
123123
start_day = "2020-09-15", end_day = "2020-12-05",
@@ -221,7 +221,7 @@ mask use.
221221
Let's see how the data looks. We'll plot the percentage of people answering
222222
"all" or "most" to each mask question in each state:
223223

224-
```{r mask_questions_compared, message=FALSE}
224+
```{r mask_questions_compared, message=FALSE, warning=FALSE}
225225
masked <- covidcast_signal(
226226
"fb-survey", "smoothed_wwearing_mask",
227227
start_day = "2020-12-01", end_day = "2020-12-01",
@@ -331,7 +331,7 @@ is "Spent time with someone who isn't currently staying with you"; whether this
331331
is done with a mask or not, it represents a higher risk. And the data shows that
332332
it's done more often in states where fewer people report wearing masks:
333333

334-
```{r social_distancing, message=FALSE}
334+
```{r social_distancing, message=FALSE, warning=FALSE}
335335
spent_time <- covidcast_signal(
336336
"fb-survey", "smoothed_wspent_time_1d",
337337
start_day = "2020-12-01", end_day = "2020-12-01",
@@ -357,7 +357,7 @@ cell phone location data. Using [state-level aggregates from our
357357
API](https://cmu-delphi.github.io/delphi-epidata/api/covidcast-signals/safegraph.html#safegraph-weekly-patterns),
358358
we can compare mask use to the proportion of people visiting restaurants in each state:
359359

360-
```{r restaurants, message=FALSE}
360+
```{r restaurants, message=FALSE, warning=FALSE}
361361
# 2020-11-29 was most recent data available at time of writing
362362
restaurants <- covidcast_signal(
363363
"safegraph", "restaurants_visit_prop",

content/blog/2020-12-10-masks-public.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,8 @@ <h2>Studying Mask Use with Surveys</h2>
7878
it’s among the lowest.</p>
7979
<pre class="r"><code>library(covidcast)
8080
library(dplyr)
81-
## Warning: package &#39;dplyr&#39; was built under R version 4.1.3
8281
library(ggplot2)
83-
## Warning: package &#39;ggplot2&#39; was built under R version 4.1.3
8482
library(directlabels)
85-
## Warning: package &#39;directlabels&#39; was built under R version 4.1.3
8683

8784
options(covidcast.auth = Sys.getenv(&quot;API_KEY&quot;)) # for more on API keys, see: https://cmu-delphi.github.io/delphi-epidata/api/api_keys.html
8885

@@ -105,12 +102,7 @@ <h2>Studying Mask Use with Surveys</h2>
105102
subtitle = &quot;From Delphi&#39;s surveys, conducted through Facebook&quot;,
106103
caption = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
107104
theme_bw() +
108-
guides(color = FALSE)
109-
## Warning: The `&lt;scale&gt;` argument of `guides()` cannot be `FALSE`. Use &quot;none&quot; instead as
110-
## of ggplot2 3.3.4.
111-
## This warning is displayed once every 8 hours.
112-
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
113-
## generated.</code></pre>
105+
guides(color = FALSE)</code></pre>
114106
<p><img src="/blog/2020-12-10-masks-public_files/figure-html/state_masks_time-1.svg" width="672" /></p>
115107
<p>Despite the gap between states, it also seems clear that self-reported mask use
116108
has been on the rise in states whose mask use started low. This is quite

0 commit comments

Comments
 (0)