我该如何更改下面绘图中
stat_compare_means
的字体大小?即,更改“Kruskal-Wallis,p = 1.5e-09”和其他p值的字体大小?我想使用比默认字体小的字体大小...以下是数据示例...library(ggpubr)
data("ToothGrowth")
compare_means(len ~ dose, data = ToothGrowth)
# Visualize: Specify the comparisons I want
my_comparisons <- list( c("0.5", "1"), c("1", "2"), c("0.5", "2") )
# Plotting
ggboxplot(ToothGrowth, x = "dose", y = "len",
color = "dose", palette = "jco")+
stat_compare_means(comparisons = my_comparisons)+ # Add pairwise comparisons p-value
stat_compare_means(label.y = 50) # Add global p-value
情节: