[R] help with pasting + expressions?

Jeff D. Hamann jeff.hamann at forestinformatics.com
Thu Aug 24 05:01:48 CEST 2006


I can't believe I'm having such a hard time with this and I haven't been
able to find out how to solve this...

lab <- expression( paste( hat(v),
    as.character(round(y.hat,2)), ",",
    hat(sigma)^2, as.character(sigma.hat)) )
text( x=pt$x+2, y=pt$y,labels=lab )

## the text should be \hat{y} = <value of y.hat>, \hat{\sigma}^2 == <value
of sigma.hat>

and R keeps displaying the actual text of the non-expressions...

I must be a chowderhead, but I need a little guidance, please...

Thanks,
Jeff.


-- 
Forest Informatics, Inc.
PO Box 1421
Corvallis, Oregon 97339-1421



More information about the R-help mailing list