我正在绘制一个绘图中的几个corrplots,并想绘制绘图下面的colorlegend,因此我需要调整边距但不知道边距是否调整,这是我的代码:
par(mfrow=c(3,3),mar=c(8,5,5,3))
corrplot(Cor_EC_3_eur,method="color",title = "\nCore/Energy 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
corrplot(Cor_FE_3_eur,method="color",title = "Eurozone \nFood/Energy 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
corrplot(Cor_CF_3_eur,method="color",title = "\nCore/Food 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
corrplot(Cor_EC_3_aus,method="color",title = "\nCore/Energy 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
corrplot(Cor_FE_3_aus,method="color",title = "Australia \nFood/Energy 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
corrplot(Cor_CF_3_aus,method="color",title = "\nCore/Food 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
corrplot(Cor_EC_3_sa,method="color",title = "\nCore/Energy 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
corrplot(Cor_FE_3_sa,method="color",title = "South Africa \nFood/Energy 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
colorlegend(xlim=c(-5,10), ylim=c(-1,0), color1, c(seq(-1,1,.25)), align="c", vertical=FALSE, addlabels=TRUE)
corrplot(Cor_CF_3_sa,method="color",title = "\nCore/Food 3M",mar=c(0,0,2,0),tl.col = "black",cl.pos="n",col=color1)
导致以下情节:
其中colorlegend在中间corrplot下面的3行中仅作为直线可见。
但希望有类似的东西(只有colorlegend向下移动):
谢谢,最好 雅各布