Re: [R] equation on graph

2009-04-27 Thread Matthieu Dubois
see ?plotmath and ?bquote HTH, Matthieu __ 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, repr

[R] equation on graph

2009-04-27 Thread Agus Susanto
Dear all, I want to write regression equation on R graph by taking the actual values of the regression coefficients. I have problem when writing X^2 (printed as X superscripts 2). I know there's a function "expression" but still no luck to use it in this case. Below is the R code as an example: p