From 63d47c6bfb345f09c3aac5580c4722ae9c90b3c3 Mon Sep 17 00:00:00 2001 From: Jajo <61380814+RIngyao@users.noreply.github.com> Date: Wed, 1 Jun 2022 09:49:04 +0530 Subject: [PATCH] Update data-visualize.qmd (#1036) Added example for facet_wrap --- data-visualize.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.