Re: [R] 3d plotting with cloud and wireframe

2011-07-21 Thread Dennis Murphy
Hi: This worked for me: t <- 0:100 DBH <- 10:100 TxDBH<-expand.grid(t, DBH) rm(t, dbh) time<-TxDBH[,1] dbh<-TxDBH[,2] M <- 4000*(1-exp(-time*(1.104-(0.67*0.7)-0.163*log(dbh))^2)) df <- data.frame(time, dbh, M) library('lattice') wireframe(M ~ time + dbh, data = df) # Check the versions of R and

[R] 3d plotting with cloud and wireframe

2011-07-21 Thread Benjamin Caldwell
Hi, I'm trying to plot an equation in two variables to get a feel for sensitivity to its parameters. I've run expand.grid to get made-up vectors of the combinations of the two independent variables, and am trying to plot the output of the dependent, M, against both the dependent in a 3d space. t