Typo Correction in Section 11.3 (#1289)

Changed geom_smooth() to geom_point() to maintain consistency with geometric object function name in the code block below.
This commit is contained in:
Matthias Liew
2023-02-16 10:51:18 +08:00
committed by GitHub
parent 821973e944
commit 90c63f11e0

View File

@@ -362,7 +362,7 @@ ggplot(mpg, aes(x = displ, y = hwy)) +
You can use the same idea to specify different `data` for each layer.
Here, we use red points as well as open circles to highlight two-seater cars.
The local data argument in `geom_smooth()` overrides the global data argument in `ggplot()` for that layer only.
The local data argument in `geom_point()` overrides the global data argument in `ggplot()` for that layer only.
```{r}
#| message: false