eddie smith
2012-Sep-14 09:32 UTC
[R] How to specify minimum and maximum x-axis value in logi.hist.plot?
Hi guys, How could I specify minimum and maximum x-axis values in logi.hist.plot? My code is something like this: plot(mydata$Temperature,mydata$Mortality, ,xlab="Temperature",ylab="Probability of mortality") curve(predict(temp.glm,data.frame(Temperature=x),type="resp"),add=TRUE, col="red") points(mydata$Temperature,fitted(temp.glm),pch=20) title(main="Mortality-Temperature with Fitted GLM Logistic Regression Line") Anybody? :) Cheers Eddie
R. Michael Weylandt
2012-Sep-14 10:46 UTC
[R] How to specify minimum and maximum x-axis value in logi.hist.plot?
plot(..., xlim = c(a,b)) to limit the plot to [a, b] Cheers, M On Friday, September 14, 2012, eddie smith wrote:> Hi guys, > > How could I specify minimum and maximum x-axis values in logi.hist.plot? > My code is something like this: > > plot(mydata$Temperature,mydata$Mortality, > ,xlab="Temperature",ylab="Probability of mortality") > curve(predict(temp.glm,data.frame(Temperature=x),type="resp"),add=TRUE, > col="red") > points(mydata$Temperature,fitted(temp.glm),pch=20) > title(main="Mortality-Temperature with Fitted GLM Logistic Regression > Line") > > Anybody? :) > > Cheers > Eddie > > ______________________________________________ > R-help@r-project.org <javascript:;> mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]