Re: [R] Rug plot curve reversal

2011-10-04 Thread Uwe Ligges
On 04.10.2011 13:30, Peter Minting wrote: Dear R-help Can anyone tell me why my curve appears the wrong way round on a rug plot? I am using the same code as on pg 596 of the Crawley R-book. mod<-glm(mort~logBd,binomial) What is mort, what is logBd? I don't have access to the book. I have

[R] Rug plot curve reversal

2011-10-04 Thread Peter Minting
Dear R-help Can anyone tell me why my curve appears the wrong way round on a rug plot? I am using the same code as on pg 596 of the Crawley R-book. mod<-glm(mort~logBd,binomial) par(mfrow=c(2,2)) xv<-seq(0,8,0.01) yv<-predict(mod,list(logBd=xv),type="response") plot(logBd,mort) lines(xv,yv) I've t