[R] How to join two plotmath type expressions
    S Ellison 
    S.Ellison at LGCGroup.com
       
    Wed Aug 15 12:45:46 CEST 2012
    
    
  
>  > 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}}
    
    
More information about the R-help
mailing list