我想更改图表的标题,图例和轴的字体大小,我使用主题更改了它,但它没有任何影响:
ggplot( data = df.m, aes(x=variable, y=value , na.rm = TRUE)) +
geom_boxplot(aes(fill=label), outlier.size = 0.5) +
labs(x="",y="Values",fill="") +
theme(text = element_text(size=100), axis.text.x = element_text(angle = 90, hjust = 1, colour = 'black'),
axis.title=element_text(size=100) , text=element_text(size=100),
legend.text = element_text(size = 100),
axis.text.x = element_text(size = 100), axis.text.y = element_text(size = 100), legend.position = "top") + theme_bw()
为什么它根本不改变字体大小?