[R] help with pasting + expressions?

From: Jeff D. Hamann <jeff.hamann_at_forestinformatics.com>
Date: Thu 24 Aug 2006 - 13:01:48 EST

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...


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

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Thu Aug 24 13:10:01 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 24 Aug 2006 - 18:24:48 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.