[R] Question about parse and expression

Nitin Jain nj7w at yahoo.com
Thu Jun 7 05:34:37 CEST 2007


Dear R-users,

In the following example, I would like to see my ylabel as: "beta[3] * x[3] + epsilon" (where beta and epsilon are replaced by their mathematical symbols).

Please advise.

Thanks.

Nitin


i <- 3

ee <- expression(beta[i] * x[i] + epsilon)

xyplot(1:10~ 11:20,
       ylab = parse(text=ee)
       )
   



 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time



More information about the R-help mailing list