Hi
I am having difficulty getting the right format for a lattice plot I am
trying to produce.
Here is a pic of the plot as I get it now
http://i235.photobucket.com/albums/ee37/scotrivers/lattice_plot01.jpg
and here is the code I am using:
RN<-read.csv("N:/data.dat",header=T)
DATA<-RN[is.element(RN$age,0:3),] #select data on age
ogmod1<-glm(mig~age+length,family=binomial(link="logit"),data=DATA)
design1<-expand.grid(age=c(0:3),length=seq(30,300,by=10))
design1$pbs<-predict(ogmod1,new=design1,type="response")
design1$migr<-round(design1$pbs)
library(lattice)
wireframe(pbs~age*length,data=design1,aspect=c(1,1),main="Probability
Surface",
drape=T,scale=list(arrows=FALSE),screen=list(z=45,x=-75),
colorkey=list(space="right",height=0.6),xlab="Age",ylab="Length
(mm)",zlab="Probability")
I have a number of problems:
1. the Z-axis label goes off the edge of the plotting area, I need to move
the plot to the right somehow, but can't find a way to do this (tried
various margin settings)