Re: [R] Custom nonlinear self starting function w/ 2 covariates

2010-07-13 Thread Sebastien Guyader
's good that it works with nlme. Sebastien Guyader wrote: > > Hello, > > I'm trying to adjust a non linear model in which the biological response > variable (ratio of germinated fungus spores) is dependent on 2 covariates > (temperature and time). The response to te

[R] Custom nonlinear self starting function w/ 2 covariates

2010-07-12 Thread Sebastien Guyader
Hello, I'm trying to adjust a non linear model in which the biological response variable (ratio of germinated fungus spores) is dependent on 2 covariates (temperature and time). The response to temperature is modeled by a kind of beta function with 2 parameters (optimal and maximum temperatures)

Re: [R] how to draw the legend about color from 3d picture

2010-07-07 Thread Sebastien Guyader
It may not help the original poster, but here's a solution based on what Greg said above: # Load plotrix library(plotrix) # Create a new layout to divide the graphics in 2, the first one (displaying the persp() graph) being 4 times larger than the second one (displying the legend) layout(matrix

Re: [R] grayscale wireframe??

2010-07-07 Thread Sebastien Guyader
With grDevices package, I do the following to generate a greyscale: newcols <- colorRampPalette(c("white", "black")) #generates palette from white to black #OR newcols <- colorRampPalette(c("grey90", "grey10")) #generates palette frome light to dark grey for better visibility Then in the wir