[R] interaction term and scatterplot3d

2007-02-20 Thread Patrick Giraudoux
Dear Listers, I would be interested in representing a trend surface including an interaction term z = f(x,y,x.y) - eg the type of chart obtained with persp() or wireframe(), then adding datapoints as a cloud, ideally with dots which are under the surface in a color, and those who are above in

Re: [R] interaction term and scatterplot3d

2007-02-20 Thread Patrick Giraudoux
Sorry to answer to myself. A solution was trivial with lattice... (as often !) library(lattice) modbusetmp-lm(IKA_buse ~ Ct *Cc,data=dtbuse) G1-cloud(IKA_buse~Ct*Cc,type=h,data=dtbuse) G2-cloud(IKA_buse~Ct*Cc,data=dtbuse) seqCc-seq(min(dtbuse$Cc),max(dtbuse$Cc),l=20)