Reputation: 724
How can I increase the font size of the mean in the plot when using ggstatsplot? ggbetweenstats in particular?
I can change the font size for everything using the code below, except the mean in the actual plot.
ggplot.component = list(theme(text = element_text(size = 21))))
Code to generate above plot
ggbetweenstats(
data = iris,
x = Species,
y = Sepal.Length,
title = "Distribution of sepal length across Iris species"
)
Upvotes: 4
Views: 1646
Reputation: 125228
You could set the font size and style the labels via centrality.label.args
:
library(ggstatsplot)
ggbetweenstats(
data = iris,
x = Species,
y = Sepal.Length,
title = "Distribution of sepal length across Iris species",
centrality.label.args = list(size = 8)
)
Upvotes: 3