Skip to content

Commit 529d4d8

Browse files
committed
remove warning in blog 2021-01-15-causal-effect-mobility
1 parent bd88c4b commit 529d4d8

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

content/blog/2021-01-15-causal-effect-mobility.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ weekly deaths and mobility
398398
starting February 15, 2020,
399399
for a few states:
400400

401-
```{r deaths-by-state, message=FALSE}
401+
```{r deaths-by-state, message=FALSE, warning=FALSE}
402402
library(covidcast)
403403
library(directlabels)
404404
library(dplyr)

content/blog/2021-01-15-causal-effect-mobility.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,9 @@ <h2>The Data and the Results</h2>
364364
for a few states:</p>
365365
<pre class="r"><code>library(covidcast)
366366
library(directlabels)
367-
## Warning: package &#39;directlabels&#39; was built under R version 4.1.3
368367
library(dplyr)
369-
## Warning: package &#39;dplyr&#39; was built under R version 4.1.3
370368
library(lubridate)
371-
## Warning: package &#39;lubridate&#39; was built under R version 4.1.3
372369
library(ggplot2)
373-
## Warning: package &#39;ggplot2&#39; was built under R version 4.1.3
374370

375371
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
376372

@@ -422,12 +418,7 @@ <h2>The Data and the Results</h2>
422418
subtitle = &quot;From JHU CSSE COVID-19 data&quot;,
423419
caption = &quot;Data from Delphi COVIDcast, delphi.cmu.edu&quot;) +
424420
theme_bw() +
425-
guides(color = FALSE)
426-
## Warning: The `&lt;scale&gt;` argument of `guides()` cannot be `FALSE`. Use &quot;none&quot; instead as
427-
## of ggplot2 3.3.4.
428-
## This warning is displayed once every 8 hours.
429-
## Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
430-
## generated.</code></pre>
421+
guides(color = FALSE)</code></pre>
431422
<p><img src="/blog/2021-01-15-causal-effect-mobility_files/figure-html/deaths-by-state-1.svg" width="672" /></p>
432423
<pre class="r"><code>ggplot(dat_week, aes(x = week, y = weekly_stay_home, color = state)) +
433424
geom_line() +

0 commit comments

Comments
 (0)