Just define your own panel function. Here I modified the panel.ellipse
function and called it panel.lm
library(corrgram)
data(baseball)
vars2 <- c("Assists","Atbat","Errors","Hits","Homer","logSal",
"Putouts","RBI","Runs","Walks","Years")
panel.lm <- function(x, y, ...){
dfn <-
Dear all,
I generated a Correlograms and used the panel.ellipse (confidence ellipse
and smoothed line) option. Is there a way to get instead of the smoothed
line the linear regression?
Thanks,
As hz
--
View this message in context:
http://r.789695.n4.nabble.com/Correlograms-and-linear-regre
2 matches
Mail list logo