@@ -709,18 +709,20 @@ ggplot(data = mpg) +
|
|||||||
##### Exercises
|
##### Exercises
|
||||||
|
|
||||||
1. What graph will this code make?
|
1. What graph will this code make?
|
||||||
```{r eval = FALSE}
|
|
||||||
ggplot(data = mpg) +
|
```{r eval = FALSE}
|
||||||
|
ggplot(data = mpg) +
|
||||||
geom_point(mapping = aes(x = displ, y = hwy)) +
|
geom_point(mapping = aes(x = displ, y = hwy)) +
|
||||||
facet_grid(drv ~ .)
|
facet_grid(drv ~ .)
|
||||||
```
|
```
|
||||||
|
|
||||||
1. What graph will this code make?
|
1. What graph will this code make?
|
||||||
```{r eval = FALSE}
|
|
||||||
ggplot(data = mpg) +
|
```{r eval = FALSE}
|
||||||
|
ggplot(data = mpg) +
|
||||||
geom_point(mapping = aes(x = displ, y = hwy)) +
|
geom_point(mapping = aes(x = displ, y = hwy)) +
|
||||||
facet_grid(. ~ cyl)
|
facet_grid(. ~ cyl)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### The layered grammar of graphics
|
### The layered grammar of graphics
|
||||||
|
|||||||
Reference in New Issue
Block a user