Skip to content
Snippets Groups Projects
Commit dc310a00 authored by Carine Rey's avatar Carine Rey
Browse files

replace mpg example by new_mpg example

parent ad6c12e1
No related branches found
No related tags found
No related merge requests found
Pipeline #486 passed
...@@ -390,7 +390,7 @@ ggplot(data = new_mpg, mapping = aes(x = displ, y = hwy)) + ...@@ -390,7 +390,7 @@ ggplot(data = new_mpg, mapping = aes(x = displ, y = hwy)) +
``` ```
<div class="pencadre"> <div class="pencadre">
Now try to facet your plot by `fl + class` Now try to facet your plot by `fuel + class`
</div> </div>
...@@ -399,9 +399,9 @@ Now try to facet your plot by `fl + class` ...@@ -399,9 +399,9 @@ Now try to facet your plot by `fl + class`
Formulas allow you to express complex relationship between variables in R ! Formulas allow you to express complex relationship between variables in R !
```{r new_mpg_plot_l, cache = TRUE, fig.width=8, fig.height=4.5} ```{r new_mpg_plot_l, cache = TRUE, fig.width=8, fig.height=4.5}
ggplot(data = mpg, mapping = aes(x = displ, y = hwy)) + ggplot(data = new_mpg, mapping = aes(x = displ, y = hwy)) +
geom_point() + geom_point() +
facet_wrap(~ fl + class, nrow = 2) facet_wrap(~ fuel + class, nrow = 2)
``` ```
</p> </p>
</details> </details>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment