Fix two typos (#710)

This commit is contained in:
Ulrik Lyngs 2018-10-24 18:23:06 +01:00 committed by Hadley Wickham
parent a808d61a88
commit 428e1d2186
1 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ ggplot(diamonds, aes(carat, price)) +
scale_y_log10()
```
Another scale that is frequently customised is colour.The default categorical scale picks colours that are evenly spaced around the colour wheel. Useful alternatives are the ColorBrewer scales which have been hand tuned to work better for people with common types of colour blindness. The two plots below look similar, but there is enough difference in the shades of red and green that the dots on the right can be distinguished even by people with red-green colour blindness.
Another scale that is frequently customised is colour. The default categorical scale picks colours that are evenly spaced around the colour wheel. Useful alternatives are the ColorBrewer scales which have been hand tuned to work better for people with common types of colour blindness. The two plots below look similar, but there is enough difference in the shades of red and green that the dots on the right can be distinguished even by people with red-green colour blindness.
```{r, fig.align = "default", out.width = "50%"}
ggplot(mpg, aes(displ, hwy)) +
@ -550,7 +550,7 @@ I only ever use three of the five options:
adjust `fig.asp`.
* I control the output size with `out.width` and set it to a percentage
of the line width). I default to `out.width = "70%"`
of the line width. I default to `out.width = "70%"`
and `fig.align = "center"`. That give plots room to breathe, without taking
up too much space.