在 R Markdown 中使用ggplot2's 时geom_smooth,我得到了评论
## `geom_smooth()` using formula 'y ~ x'
Run Code Online (Sandbox Code Playgroud)
即使我echo = FALSE, warning = FALSE, messages = FALSE在代码块头中包含:
我怎样才能摆脱它?
例子:
---
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)
```
Run Code Online (Sandbox Code Playgroud)