Re: [R] wireframe 3-D problems

2009-05-17 Thread Xu Jun
Ben, Thank you for your help! Jun [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide c

Re: [R] wireframe 3-D problems

2009-05-16 Thread Ben Bolker
Xu Jun wrote: > > I am trying to graph a 3-D graph of simulated data for logit models using > the powerful wireframe command, but I got stuck. Here are the codes: > > x <- seq(-4, 4, by=0.01) > y <- seq(-4, 4, by=0.01) > p <- 1/(1+exp(-0.12*x + 0.35*y)) > mydata <- cbind(x, y, p) > require

[R] wireframe 3-D problems

2009-05-16 Thread Xu Jun
Dear All R Users, I am trying to graph a 3-D graph of simulated data for logit models using the powerful wireframe command, but I got stuck. Here are the codes: x <- seq(-4, 4, by=0.01) y <- seq(-4, 4, by=0.01) p <- 1/(1+exp(-0.12*x + 0.35*y)) mydata <- cbind(x, y, p) require(lattice) wirefr