parent
2f85ba936b
commit
302528634e
|
@ -708,19 +708,21 @@ ggplot(data = mpg) +
|
|||
|
||||
##### Exercises
|
||||
|
||||
1. What graph will this code make?
|
||||
```{r eval = FALSE}
|
||||
ggplot(data = mpg) +
|
||||
geom_point(mapping = aes(x = displ, y = hwy)) +
|
||||
facet_grid(drv ~ .)
|
||||
```
|
||||
1. What graph will this code make?
|
||||
|
||||
1. What graph will this code make?
|
||||
```{r eval = FALSE}
|
||||
ggplot(data = mpg) +
|
||||
geom_point(mapping = aes(x = displ, y = hwy)) +
|
||||
facet_grid(. ~ cyl)
|
||||
```
|
||||
```{r eval = FALSE}
|
||||
ggplot(data = mpg) +
|
||||
geom_point(mapping = aes(x = displ, y = hwy)) +
|
||||
facet_grid(drv ~ .)
|
||||
```
|
||||
|
||||
1. What graph will this code make?
|
||||
|
||||
```{r eval = FALSE}
|
||||
ggplot(data = mpg) +
|
||||
geom_point(mapping = aes(x = displ, y = hwy)) +
|
||||
facet_grid(. ~ cyl)
|
||||
```
|
||||
|
||||
|
||||
### The layered grammar of graphics
|
||||
|
|
Loading…
Reference in New Issue