我正在用R绘制图形但是斜体函数在主标题下非常令人沮丧:
在远花园珊瑚礁遗址的不同C. austriacus个体的映射区域
任何帮助,将不胜感激.
如何标记此轴标题的单位.该""代表我需要上标部分:Photosynthetically available radiation (µE m"-2"d"-1").
到目前为止,我使用了公式并且没有运气:
plot(PAR~SST,data=brazilw, pch=15,col="red", main ="Fig. 1. Relationship between photosynthically available radiation\n and sea surface temperature",
ylab=expression("Photosynthetically available radiation (µE m"^-2~d^-1))
Run Code Online (Sandbox Code Playgroud) 我需要添加换行符,但我正在努力使用atop函数expression().这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}*")"))
Run Code Online (Sandbox Code Playgroud)