diff --git a/data-tidy.qmd b/data-tidy.qmd index ad15a8e..21e4076 100644 --- a/data-tidy.qmd +++ b/data-tidy.qmd @@ -194,7 +194,7 @@ billboard |> pivot_longer( cols = starts_with("wk"), names_to = "week", - values_to = "rank", + values_to = "rank" ) ``` diff --git a/data-visualize.qmd b/data-visualize.qmd index 1d33ec1..e2de139 100644 --- a/data-visualize.qmd +++ b/data-visualize.qmd @@ -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.