From b3bf683d8c1976b7093cbb265ec0ce57747f937d Mon Sep 17 00:00:00 2001 From: davidhodge931 Date: Tue, 19 Sep 2023 16:30:54 +1200 Subject: [PATCH] Update subtitle margin --- vignettes/articles/3_go_further-Rmd.Rmd | 5 +++-- vignettes/ggblanket.Rmd | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vignettes/articles/3_go_further-Rmd.Rmd b/vignettes/articles/3_go_further-Rmd.Rmd index 222e812be..b03c56be1 100644 --- a/vignettes/articles/3_go_further-Rmd.Rmd +++ b/vignettes/articles/3_go_further-Rmd.Rmd @@ -48,7 +48,7 @@ The showtext and sysfonts packages support the use of different fonts from Googl ```{r, fig.asp = 0.75, fig.showtext = TRUE} sysfonts::font_add_google("Covered By Your Grace", "grace") -sysfonts::font_add_google('Anton', 'anton') +sysfonts::font_add_google('Roboto Slab', 'roboto_slab') sysfonts::font_add_google('Syne Mono', 'syne') showtext::showtext_auto(enable = TRUE) @@ -64,8 +64,9 @@ penguins2 |> caption = "Source: Gorman, 2020", pal = c("#2596be", "#fc7c24"), theme = light_mode( + base_size = 11, base_family = "grace", - title_family = "anton", + title_family = "roboto_slab", subtitle_family = "syne")) showtext::showtext_auto(enable = FALSE) ``` diff --git a/vignettes/ggblanket.Rmd b/vignettes/ggblanket.Rmd index f37ce74d8..b45ae0fca 100644 --- a/vignettes/ggblanket.Rmd +++ b/vignettes/ggblanket.Rmd @@ -48,7 +48,7 @@ penguins2 <- palmerpenguins::penguins |> mutate(sex = stringr::str_to_sentence(sex)) |> tidyr::drop_na(sex) ``` - + ### 1. Over thirty gg\_\* wrapper functions Each `gg_*` function wraps a ggplot2 `ggplot(aes(...))` function with the applicable ggplot2 `geom_*()` function. All aesthetics are placed directly in the `gg_*` function: they are not within a `ggplot2::aes` function. @@ -286,7 +286,7 @@ penguins2 |> ```{r, fig.asp=0.8} # ggblanket -theme_set(light_mode(base_size = 14)) +theme_set(light_mode(base_size = 12)) penguins2 |> gg_point(