>  > label <- 'Temperature'
>  > unit <- expression(paste(degree,'C'))
> 
> how can I join them together for use in mtext (or 
> equivalent)? The following is conceptually what I want to do, 

This seems to work:

plot(1:10, type='n')

label <- 'Temperature'
unit <- bquote(degree*C)
text(5,5,substitute(l~u, list(l=label, u=unit)))
 
S Ellison

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

______________________________________________
R-help@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.

Reply via email to