R plot title with uppercase and italic

只愿长相守 提交于 2019-12-08 02:16:52

问题


I'm trying to make a title with italic and uppercase text. Right now I have this code line:

main=substitute(paste(italic("S. aureus"), " (10^6) growth inhibition" ))

Any idea how to make the 6 uppercase?


回答1:


We can try

plot(1, main=expression(paste(italic("S. aureus"), " (10"^{6}*")"~"growth inhibition" )))


来源:https://stackoverflow.com/questions/33584083/r-plot-title-with-uppercase-and-italic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!