R Code [zeigen / verbergen]
library(ggrepel)
Letzte Änderung am 03. April 2025 um 12:24:15
Die Sache mit der Schriftart in {ggplot}
.
Getting started with {ggrepel}
{ggtext
}: Improved text rendering support for ggplot2
```{r echo = FALSE}
#| message: false
#| warning: false
pacman::p_load(tidyverse, readxl, knitr, kableExtra, Hmisc, performance, parameters,
latex2exp, see, patchwork, mfp, multcomp, emmeans, janitor, effectsize,
broom, ggmosaic,
conflicted)
conflicts_prefer(dplyr::select)
conflicts_prefer(dplyr::filter)
cb_pal <- c("#000000", "#E69F00", "#56B4E9", "#009E73",
"#F0E442", "#0072B2", "#D55E00", "#CC79A7")
cbbPalette <- cb_pal
```
# Baustelle {#sec-construction}
*Letzte Änderung am `r format(fs::file_info("construction-zone.qmd")$modification_time, '%d. %B %Y um %H:%M:%S')`*
## Bessere Schriftart? {.unnumbered}
Die Sache mit der Schriftart in `{ggplot}`.
```{r}
library(ggrepel)
```
[Getting started with `{ggrepel}`](https://cran.r-project.org/web/packages/ggrepel/vignettes/ggrepel.html) [{`ggtext`}: Improved text rendering support for ggplot2](https://wilkelab.org/ggtext/)
```{r}
update_geom_defaults("label",
list(family = "IBM Plex Sans Condensed"))
update_geom_defaults(ggtext::GeomRichText,
list(family = "IBM Plex Sans Condensed"))
update_geom_defaults("label_repel",
list(family = "IBM Plex Sans Condensed"))
```
```{r}
ggplot(tibble(x = 1:3, y = 1:3), aes(x,y)) +
theme_minimal(base_family = "IBM Plex Sans Condensed") +
geom_point() +
labs(x = "Hallo", y = "Mehr zesz")
```