From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>

Date: Wed 25 Oct 2006 - 23:46:06 GMT

R-help@stat.math.ethz.ch 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. Received on Thu Oct 26 16:12:06 2006

Date: Wed 25 Oct 2006 - 23:46:06 GMT

There's nothing funny about it, ?wireframe clearly says:

In the case of 'wireframe', calculations are based on the assumption that the 'x' and 'y' values are evaluated on a rectangular grid defined by their unique values.

*> reggrid <- expand.grid(u=1:10,v=1:10)
**> reggrid$z <- runif(100)
**> reggrid <- data.frame(reggrid)
**> is.data.frame(reggrid)
**> wireframe(z~u*v,reggrid,scales=list(arrows=FALSE),drape=TRUE,colorkey=TRUE)
**>
**> but this does not:
**>
**> u <- c(1:100)
**> v <- mat.or.vec(100,1)
**> ij=0
**> for(i in 1:10)
**> {
**> for(j in 1:10)
**> {
**> ij=ij+1
**> v[ij]=j
**> }
**> }
**> z <- runif(100)
**> reggrid <- data.frame(u,v,z)
**> is.data.frame(reggrid)
**> wireframe(z~u*v,reggrid,scales=list(arrows=FALSE),drape=TRUE,colorkey=TRUE)
**>
**> Does anyone have any insight on this? In addition, I would also like to do
**> what Alexander is trying to do, which is create a wireframe from irregular
**> lattice data.
*

See a recent thread at

http://tolstoy.newcastle.edu.au/R/e2/help/06/10/2525.html

-Deepayan

R-help@stat.math.ethz.ch 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. Received on Thu Oct 26 16:12:06 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Thu 26 Oct 2006 - 17:30:17 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*