Fixes #1352
This commit is contained in:
Hadley Wickham 2023-03-09 17:19:06 -06:00
parent 8c03ddc730
commit bac06d00f2
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ ggplot(mpg, aes(x = displ, y = hwy)) +
geom_smooth()
```
Every geom function in ggplot2 takes a `mapping` argument, either defined locally in the geom layer or globally in the `ggoplot()` layer.
Every geom function in ggplot2 takes a `mapping` argument, either defined locally in the geom layer or globally in the `ggplot()` layer.
However, not every aesthetic works with every geom.
You could set the shape of a point, but you couldn't set the "shape" of a line.
If you try, ggplot2 will silently ignore that aesthetic mapping.