Add x and y to aes(), addresses #1159
This commit is contained in:
@@ -18,7 +18,7 @@ class <- mpg |> filter(class == params$my_class)
|
||||
```{r}
|
||||
#| message: false
|
||||
|
||||
ggplot(class, aes(displ, hwy)) +
|
||||
ggplot(class, aes(x = displ, y = hwy)) +
|
||||
geom_point() +
|
||||
geom_smooth(se = FALSE)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user