From 3e98f2393c1e6aebbd2b3299f0db15724723e477 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Fri, 6 Sep 2024 15:12:12 +0900 Subject: [PATCH] Update code of showing the default size of `geom_text()` --- vignettes/articles/faq-customising.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vignettes/articles/faq-customising.Rmd b/vignettes/articles/faq-customising.Rmd index 5c8ed1b44f..d1be368cb1 100644 --- a/vignettes/articles/faq-customising.Rmd +++ b/vignettes/articles/faq-customising.Rmd @@ -497,10 +497,10 @@ ggplot(mpg, aes(x = hwy, y = cty)) + ### What is the default size of `geom_text()` and how can I change the font size of `geom_text()`? -The default font size of `geom_text()` is 3.88. +The default font size of `geom_text()` is about 3.87. ```{r} -GeomLabel$default_aes$size +get_geom_defaults(geom_text)$size ``` 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))`.