search for: reggrid

Displaying 1 result from an estimated 1 matches for "reggrid".

2006 Oct 25
1
cloud() works but wireframe() is blank
...<-rnorm(100) > z<-runif(100) > temp <-data.frame(x,y,z) > wireframe(x~y*z,temp) > cloud(x~y*z,temp) There is something funny about the way wireframe treats a data frame object created using "data.frame" vs. using "expand.grid". For instance, this works: 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)...