r

r-total name和comply scenes的传奇

我想知道如何为联合情节提供共同的名字和传奇 R. 我有四个我组合成一个地块。 每个情节都有它的名字。 我想在上部中心指示一个普通的标题和组合网站左上角的一般图例。 我使用了一个组合的时间表 par//. 我在下面给了我的情节
已邀请:

风见雨下

赞同来自:

您可以使用该参数
oma

, 放大外部领域 ,
然后使用主标题使用
mtext

并尝试手动安排传奇。


op <- par/
oma=c/0,0,3,0/,# Room for the title and legend
mfrow=c/2,2/
/
for/i in 1:4/ {
plot/ cumsum/rnorm/100//, type="l", lwd=3,
col=c/"navy","orange"/[ 1+i%%2 ],
las=1, ylab="Value",
main=paste/"Random data", i/ /
}
par/op/ # Leave the last plot
mtext/"Main title", line=2, font=2, cex=1.2/
op <- par/usr=c/0,1,0,1/, # Reset the coordinates
xpd=NA/ # Allow plotting outside the plot region
legend/-.1,1.15, # Find suitable coordinates by trial and error
c/"one", "two"/, lty=1, lwd=3, col=c/"navy", "orange"/, box.col=NA/

要回复问题请先登录注册