Skip to content

Commit

Permalink
corrected a few typos in Ch. 1-6 (mostly in exercises statements) (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley authored Jun 17, 2019
2 parents d0ced7a + e98fbae commit ffe19f9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ggplot.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This dataset suggests many interesting questions. How are engine size and fuel e
fixed amount of fuel). How could you convert `cty` and `hwy` into the
European standard of l/100km?

1. Which manufacturer has the most the models in this dataset? Which model has
1. Which manufacturer has the most models in this dataset? Which model has
the most variations? Does your answer change if you remove the redundant
specification of drive train (e.g. "pathfinder 4wd", "a4 quattro") from the
model name?
Expand Down
2 changes: 1 addition & 1 deletion layers.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ ggplot(mpg, aes(displ, hwy)) +

```{r, eval = FALSE}
ggplot(mpg) +
geom_point(aes(mpg$disp, mpg$hwy))
geom_point(aes(mpg$displ, mpg$hwy))
ggplot() +
geom_point(mapping = aes(y = hwy, x = cty), data = mpg) +
Expand Down
2 changes: 1 addition & 1 deletion scales.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ There are four continuous colour scales:
make them unevenly spaced, use the `values` argument, which should be a
vector of values between 0 and 1.

* `scale_color_distiller()` and `scale_fill_gradient()` apply the ColorBrewer
* `scale_color_distiller()` and `scale_fill_distiller()` apply the ColorBrewer
colour scales to continuous data. You use it the same way as
`scale_fill_brewer()`, described below:

Expand Down
2 changes: 1 addition & 1 deletion toolbox.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ The bars will be stacked in the order defined by the grouping variable. If you n
`cyl` into a factor. What extra aesthetic do you need to set?

1. Modify the following plot so that you get one boxplot per integer value
value of `displ`.
of `displ`.

```{r, eval = FALSE}
ggplot(mpg, aes(displ, cty)) +
Expand Down

0 comments on commit ffe19f9

Please sign in to comment.