Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 247
user3676232 Avatar asked Dec 02 '25 09:12

user3676232


1 Answers

We can try

plot(1, main=expression(paste(italic("S. aureus"), " (10"^{6}*")"~"growth inhibition" )))
like image 139
akrun Avatar answered Dec 05 '25 02:12

akrun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!