ggvegan的RDA图:如何更改箭头文本的文本位置?

时间:2018-11-12 15:48:52

标签: r ggplot2 rda

最近,我用vegan运行了一个RDA,然后依次用ggvegan进行了RDA绘制(太棒了!)。但是,我在编辑箭头文本时遇到麻烦。

我使用下面的代码生成附件图像:

library(devtools)
library(ggvegan)

cols <- c("Green", "Orange","Red","Blue")

Plot2 <- autoplot(resultado.rda_bio, arrows = TRUE,data = RDA ,colour = factor(Season), fill = factor(Season), label = TRUE, label.size = 3, shape = FALSE, loadings = TRUE, loadings.colour = 'blue', loadings.label = TRUE, loadings.label.size = 3, scale= 0) +geom_point(data = RDA,aes(RDA1,RDA2,colour = Season),size=2,alpha=0.5)+
  ylim(-3,3.0)+ xlim(-2,2.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), axis.text = element_text(family = "Arial",  colour = "black", size = 20),
        axis.title = element_text(family = "Arial", size = 25),
        text = element_text(family = "Arial", size = 20))

Plot2 + scale_colour_manual(values = cols, limits = c("Autumn", "Spring", "Summer", "Winter"))

0 个答案:

没有答案