Dear Jason, If I understood, you are looking for a way of represent a response surface. I know that there are other very interesting (and most indicated) solutions, but give a look at the akima package
Best wishes, miltinho astronauta brazil === x<-runif(100) y<-rnorm(100) binvar<-c(rep(1,70),rep(0,30)) df<-data.frame(cbind(x,y,binvar)) x11(800,600) par(mfrow=c(1,2)) plot(y~x, data=df, col=(df$binvar+1), pch=(df$binvar+1)) require(akima) df.interp<-interp(df$x, df$y, df$binvar) plot(y~x, type="n") image(df.interp, add=T, col=gray((0:32)/32)) points(y~x, data=df, col=(df$binvar+1), pch=(df$binvar+1)) On Mon, Sep 8, 2008 at 12:39 PM, Jason Thibodeau <[EMAIL PROTECTED]>wrote: > Hello all, > > I have a very large file (280k lines) containing three comma separated > variables. The first variable is a 0 or 1 depicting a pass or fail. The > other two are X and Y coordinates. Is there a good way I can represent this > data in a chart/plot form other than using a 3d histogram? If I need to use > the histogram, should I base my chart off the example contained in the RGL > package? > > Thanks a lot. > > -- > Jason Thibodeau > ECE Dept., University of Connecticut > 371 Fairfield Way, Storrs, CT 06269 > Phone: 860-486-5274 , Fax: 860-486-2447 > Email: [EMAIL PROTECTED] > URL: www.engr.uconn.edu/~jpt03002 > > [[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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. > [[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 commented, minimal, self-contained, reproducible code.