Merge branch 'main' of https://github.com/hadley/r4ds into main

This commit is contained in:
Mine Çetinkaya-Rundel 2022-06-01 00:22:38 -04:00
commit 3e5aaa10b5
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ billboard |>
pivot_longer(
cols = starts_with("wk"),
names_to = "week",
values_to = "rank",
values_to = "rank"
)
```

View File

@ -409,7 +409,7 @@ The variable that you pass to `facet_wrap()` should be discrete.
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy)) +
facet_grid(drv ~ cyl)
facet_wrap(~cyl)
```
To facet your plot on the combination of two variables, add `facet_grid()` to your plot call.