Skip to content

Commit eec7490

Browse files
Update code of showing the default size of geom_text() (#6084)
1 parent 0d3757d commit eec7490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vignettes/articles/faq-customising.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,10 +497,10 @@ ggplot(mpg, aes(x = hwy, y = cty)) +
497497

498498
### What is the default size of `geom_text()` and how can I change the font size of `geom_text()`?
499499

500-
The default font size of `geom_text()` is 3.88.
500+
The default font size of `geom_text()` is about 3.87.
501501

502502
```{r}
503-
GeomLabel$default_aes$size
503+
get_geom_defaults(geom_text)$size
504504
```
505505

506506
You can change the size using the `size` argument in `geom_text()` for a single plot. If you want to use the same updated size, you can set this with `update_geom_defaults()`, e.g. `update_geom_defaults("text", list(size = 6))`.

0 commit comments

Comments
 (0)