[R] Variables and greek letters in a plot title

S Ellison S.Ellison at LGCGroup.com
Thu Aug 16 13:18:34 CEST 2012


> I would like to give the concentration of a substance in a plot title:
> 
> 5 ug/ml substance

Examples of including a variable in text are given in the ?plotmath page, under " ## How to combine "math" and numeric variables".

For your case, 
plot(1:10)
conc=5
title(main=bquote(.(conc)~mu*"g/ml substance")) 

works.

S

*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}



More information about the R-help mailing list