我需要添加一个中断行,但是在expression()中,我很难使用atop函数。main是我想要分成两行的部分。
> plot (DAC~Chlo,data=brazilw,
pch=15,col="red",cex=0.5,
main=expression("Fig. 3. Relationship
between diffuse attenuation coefficient at 490 nm
(K"[d]*") and chlorophyll concentration at three coral
reef sites"),
xlab=expression("Chlorophyll concentration (mg "*m^{-3}*")"),
cex.lab=0.8,
cex.main=0.8,
cex.axis=0.8,
font.main=1,
ylim=c(0,0.3),
xlim=c(0,3.5),
ylab=expression("K"[d]*"(m"*-1^{-1}*")"))发布于 2014-01-11 19:53:11
您没有指定要拆分字符串的位置,但是这个示例应该可以帮助您:
plot(1~1,
main=expression(atop("bla bla bla" ~ (K[d]),
"bla bla bla")))

https://stackoverflow.com/questions/21066944
复制相似问题