Java Mailing List Archive

http://www.r-help.com/

Home » R Help for Statistical Computing »

[R] xylab formatting

Jennifer Hains

2010-08-24

Replies: Find Java Web Hosting

Author LoginPost Reply
Dear r-help,
I'm having trouble formatting xy labels for plot in r. I want to make the following y-label
"benzene (mug-3)"
where mu is greek and -3 is superscript and benzene is held in an array.
I tried this,

myname = c("benzene", "etc")
plot (c(0:10), ylab = bquote(.(myname[1])~~(mu~g ~m^-3)))
but it leaves a space between the "mu" and the "g".
Any suggestions?
Thank you for your help,
Jennifer

Jennifer Hains
Research Statistician
Ambient Air Monitoring Program
Maryland Department of the Environment
1800 Washington Blvd., Ste. 730
Baltimore, MD 21230-1720
Phone: 410-537-4027
Fax: 410-537-4243

 [[alternative HTML version deleted]]

______________________________________________
R-help@(protected)
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.
©2008 r-help.com - Jax Systems, LLC, U.S.A.