Re: [R] graphics: 3D regression plane

From: agent dunham <>
Date: Wed, 27 Apr 2011 00:32:28 -0700 (PDT)

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,

View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 27 Apr 2011 - 10:47:14 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 27 Apr 2011 - 17:10:34 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive