?pairs
?lattice::splom
?lattice::panel.xyplot
pairs( state.x77, panel=function(x,y){
points(x,y)
abline(lm(y~x), col='red')
})
library(lattice)
splom( ~state.x77, type=c('p','r') )
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imai
Hi,
I presume the easy way is using plot and lm.
Thx,
As hz
--
View this message in context:
http://r.789695.n4.nabble.com/Automated-plot-and-linear-regression-line-data-tp2328027p2328372.html
Sent from the R help mailing list archive at Nabble.com.
___
On 08/17/2010 11:47 AM, ashz wrote:
Hi,
I have an excel sheet (already imported to R) with multiple columns and I am
looking for a way in R that will allow me to generate a plot for every
possible pair and its linear regression line/data.
Any tip/idea/script how do to so.
Thanks,
As hz
?
3 matches
Mail list logo