Search code examples
rplotuppercaseitalic

R plot title with uppercase and italic


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?


Solution

  • We can try

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