[R] graphics: 3D regression plane

agent dunham crosspide at hotmail.com
Wed Apr 27 09:32:28 CEST 2011


Hi, thanks, I think I've changed the previous as you told me but I'm having
this error, what does it mean? 


model<- lm(log(v1)~log(v2)+v3, data=dat) 

newax<- expand.grid( 
    v2 = seq(min(log(dat$v2)), max(log(dat$v2)), length=100), 
    v3= seq(min(dat$v3), max(dat$v3), length=100)) 

fit <- predict(model,newax) 

graph <- regr2.plot(x=seq(min(log(dat$v2)), max(log(dat$v2)), length=100), 
                 y=seq(min(dat$v3), max(dat$v3), length=100), 
                 z= matrix(fit, 100, 100), main="Least-squares",  
             resid.plot= TRUE, plot.base.points= TRUE, expand=0.5,
ticktype="detailed", theta=-45) 


Error en cbind(x, y, z, 1) %*% pmat : argumentos no compatibles

Thanks again, user at host.com




--
View this message in context: http://r.789695.n4.nabble.com/graphics-3D-regression-plane-tp3214007p3477439.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list