小编Mic*_* Ka的帖子

qplot的ylab中的下标和上标[R]

我尝试使用表达式(),它与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)

非常感谢!

r ggplot2

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

ggplot2 ×1

r ×1