你如何在表达式()中使用atop函数? [英] How can you use the atop function in expression()?
本文介绍了你如何在表达式()中使用atop函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要添加一个换行符,但是我正在努力使用 expression()
中的atop函数。 main
是我想分成两行的部分。
>情节(DAC〜Chlo,data = brazilw,
pch = 15,col =red,cex = 0.5,
main = expression(Fig。3. Relationship
between diffuse attenuation coefficient在490 nm
(K[d] *)和三个珊瑚
礁区的叶绿素浓度),
xlab =表达(叶绿素浓度(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 } *))
解决方案
,其中你想打破字符串,但这个例子应该可以帮助你:
plot(1 〜1,
/ pre>
main = expression(atop(bla bla bla〜(K [d]),
bla bla bla)))
I need to add a line break but I am struggling with the atop function in
expression()
. Themain
is the part I would like to break into two lines.> 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}*")"))
解决方案You did not specify, where you want to break the string, but this example should help you:
plot(1~1, main=expression(atop("bla bla bla" ~ (K[d]), "bla bla bla")))
这篇关于你如何在表达式()中使用atop函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文