larmarange / ggstats

Extension to ggplot2 for plotting stats
https://larmarange.github.io/ggstats/
GNU General Public License v3.0
29 stars 1 forks source link

Change the font family for the predictor modality names #53

Closed jgires closed 8 months ago

jgires commented 8 months ago

Hello, Thanks for your work, this package is really great!

I wonder if there is a way to change the font family for the predictor modality names? It's possible to change the font for everything else, except the predictor modality font.

For example : mod <- lm(Sepal.Length ~ Sepal.Width + Species, data = iris) ggcoef_model(mod) + theme(text = element_text(family = "Roboto"))

Thanks !

jgires commented 8 months ago

Sorry, my mistake, it works !