Re: [R] Showing a line function on the ploat area
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.
[R] Showing a line function on the ploat area
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? -- View this message in context: http://r.789695.n4.nabble.com/Showing-a-line-function-on-the-ploat-area-tp2338389p2338389.html Sent from the R help mailing list archive at Nabble.com. __ 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.