我正在制作 RDA,我无法更改它返回给我的信息,如字体和字体大小。我想更改箭头的字体和字母的大小,这可能吗?我用红色圆圈标记了我要更改的信息,以便于理解。
我使用此代码生成索引的图像。我想做的是更改 RDA 箭头指示的名称的格式(字体和字体大小)。
library(devtools)
library(ggvegan)
p2=autoplot(rda1, arrows = FALSE,axes = c(1, 2), geom = "point","text", layers = c("sites", "biplot", "centroids"))+
geom_point(data = dd2,aes(RDA1,RDA2,shape = site1,colour = site1),size=3)+
ylim(-3,3.0)+ xlim(-4,4.0)+
geom_abline(intercept = 0,slope = 0,linetype="dashed", size=0.8)+
geom_vline(aes(xintercept=0), linetype="dashed", size=0.8)+
labs(x = "Axis 1 (13.8%)", y="Axis 2 (2.9%)")+
theme_bw(base_size = 20)+
theme(legend.justification = c(0,0),
legend.position = c(.10,.07),
axis.text = element_text(family = "Times", colour = "black", size = 20),
axis.title = element_text(family = "Times", size = 25),
text = element_text(family = "Times", size = 20));p2