On 08/26/2010 01:06 AM, Neta wrote:

I have a collection of results. I use R to get the linearization presented.
how can I get R to show the equation and R^2 value on the plot area next to
the graph?

Hi Neta,
You can use functions like textbox or boxed.labels (plotrix package) to display arbitrary text:


par(mar=c(6,4,4,2))
plot(1:5)
par(xpd=TRUE)
library(plotrix)
boxed.labels(4,0,
 "response~x1+x2\nr-squared = 0.7326",FALSE)
par(xpd=FALSE

Jim

______________________________________________
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, reproducible code.

Reply via email to