我怎样才能去掉 Rmd 中 geom_smooth 的评论?
How can I get rid of the comment from geom_smooth in Rmd?
在 R Markdown 中使用 ggplot2
的 geom_smooth
时,我得到了评论
## `geom_smooth()` using formula 'y ~ x'
即使我在代码中包含 echo = FALSE, warning = FALSE, messages = FALSE
cunks header:
我怎样才能摆脱它?
示例:
---
title: "Test"
output: ioslides_presentation
---
## Title
```{r cars, echo = FALSE, warning = FALSE, messages = FALSE}
library(ggplot2)
ggplot(cars, aes(speed, dist)) +
geom_point() +
geom_smooth(method=lm)
```
在您的代码中,您使用了 messages = FALSE
(复数),但它应该是 message = FALSE
。
在 R Markdown 中使用 ggplot2
的 geom_smooth
时,我得到了评论
## `geom_smooth()` using formula 'y ~ x'
即使我在代码中包含 echo = FALSE, warning = FALSE, messages = FALSE
cunks header:
我怎样才能摆脱它?
示例:
---
title: "Test"
output: ioslides_presentation
---
## Title
```{r cars, echo = FALSE, warning = FALSE, messages = FALSE}
library(ggplot2)
ggplot(cars, aes(speed, dist)) +
geom_point() +
geom_smooth(method=lm)
```
在您的代码中,您使用了 messages = FALSE
(复数),但它应该是 message = FALSE
。