Skip to content

Commit

Permalink
remove warning 2020-12-10-masks-public
Browse files Browse the repository at this point in the history
  • Loading branch information
minhkhul committed Dec 5, 2023
1 parent 4da2286 commit bd7ec32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
10 changes: 5 additions & 5 deletions content/blog/2020-12-10-masks-public.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ District of Columbia, Massachusetts, and New York), mask usage is among the
highest in the country; in the other three (South Dakota, Idaho, and Wyoming),
it's among the lowest.

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

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

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

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

```{r restaurants, message=FALSE}
```{r restaurants, message=FALSE, warning=FALSE}
# 2020-11-29 was most recent data available at time of writing
restaurants <- covidcast_signal(
"safegraph", "restaurants_visit_prop",
Expand Down
10 changes: 1 addition & 9 deletions content/blog/2020-12-10-masks-public.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,8 @@ <h2>Studying Mask Use with Surveys</h2>
it’s among the lowest.</p>
<pre class="r"><code>library(covidcast)
library(dplyr)
## Warning: package &#39;dplyr&#39; was built under R version 4.1.3
library(ggplot2)
## Warning: package &#39;ggplot2&#39; was built under R version 4.1.3
library(directlabels)
## Warning: package &#39;directlabels&#39; was built under R version 4.1.3

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

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

0 comments on commit bd7ec32

Please sign in to comment.