我尝试使用表达式(),它与noraml图一起使用,但我的尝试失败了:任何想法?
我想写一下:μgCO2 (下标2) - C m-2 (上标-2) h-1 (上标-1)
完美的工作:
plot(CO2~water_content, data=gases, ylab = expression(paste("µg ", CO[2], " - C ", m^-2, " ", h^-1, sep="")))
Run Code Online (Sandbox Code Playgroud)
失败:
qplot(factor(vegetation_dummy),CO2,facets=sampling~biochar,geom=c('boxplot'),data=gases_PL)+theme_bw()+xlab('Plants')+ylab = expression(paste("µg ", CO[2], " - C ", m^-2, " ", h^-1, sep=""))
Run Code Online (Sandbox Code Playgroud)
非常感谢!