Skip to content

Commit 2390be0

Browse files
ashishtiwari03teunbrand
authored andcommitted
Fix logical error and typo in FAQ Customising vignette (#6809)
- Correct reference to colour aesthetic instead of fill - Fix typo ("which what" → "which is what") Fixes #6805
1 parent c7d9dd5 commit 2390be0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vignettes/articles/faq-customising.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ ggplot(mpg, aes(x = hwy, y = cty, color = drv)) +
153153

154154
### How can I change the key labels in the legend?
155155

156-
If you don't want to change the levels of the variable the legend is being drawn for, you can change the key labels at the time of drawing the plot using the `labels` argument in the appropriate `scale_*()` function, e.g. `scale_colour_discrete()` if the legend is for a discrete variable mapped to the fill aesthetic.
156+
If you don't want to change the levels of the variable the legend is being drawn for, you can change the key labels at the time of drawing the plot using the `labels` argument in the appropriate `scale_*()` function, e.g. `scale_colour_discrete()` if the legend is for a discrete variable mapped to the colour aesthetic.
157157

158158
<details>
159159

160160
<summary>See example</summary>
161161

162-
The `labels` argument of `scale_*` functions takes named vectors, which what we would recommend using for relabeling keys in a legend.
162+
The `labels` argument of `scale_*` functions takes named vectors, which is what we would recommend using for relabeling keys in a legend.
163163
Using named lists allows you to declare explicitly which label is assigned to which level, without having to keep track of level order.
164164

165165
```{r}

0 commit comments

Comments
 (0)