[R] How to join two plotmath type expressions

Trevor Carey-Smith trevor.carey-smith at niwa.co.nz
Wed Aug 15 23:17:06 CEST 2012


On 08/15/2012 10:45 PM, S Ellison wrote:
> label<- 'Temperature'
> unit<- bquote(degree*C)
> text(5,5,substitute(l~u, list(l=label, u=unit)))

Thanks, that's exactly what I was after.
Regards,
Trevor.
--
Please consider the environment before printing this email.
NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.



More information about the R-help mailing list