[R] Getting rid of spaces in plot math

arun smartpink111 at yahoo.com
Tue Apr 1 04:12:46 CEST 2014


Hi,
Try:
mtext(bquote(Cortisol~(mu*g/ml))) 
A.K.




On Monday, March 31, 2014 10:05 PM, Dennis Fisher <fisher at plessthan.com> wrote:
R 3.0.2
OS X

Colleagues

I am trying to label a graphic:
    Cortisol (µg/ml)
A simplified version of the code is:
    plot(1) ; mtext(bquote("Cortisol ("~mu~"g/ml)"))
This code inserts spaces around the mu:
    Cortisol ( µ g/ml)
How can I suppress those spaces?

Dennis


Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com

______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list