Re: [R] Conditioning plots (wth coplot function) with logistic regression curves

2013-09-23 Thread Michael Friendly
On 9/22/2013 8:48 PM, Kiyoshi Sasaki wrote: > Could you please show me how to plot raw data points in those ggplots? > read ?geom_point dat$Ivy3 <- factor(cut(dat$Ivy,3)) ggplot(dat, aes(Overstory, Presence), color=Ivy3 ) + stat_smooth(method="glm", family=binomial, formula= y~x, alpha=0.3, ae

Re: [R] Conditioning plots (wth coplot function) with logistic regression curves

2013-09-22 Thread Kiyoshi Sasaki
Thank you!  Your codes produced plots that was fairly close to what I wanted. I am not familiar with ggplot2, so I need to study what exactly each code is doing. Actually, I also want to plot the observed (raw) data points (not just confidence intervals shown by ggplot, assuming that colored por

Re: [R] Conditioning plots (wth coplot function) with logistic regression curves

2013-09-22 Thread Michael Friendly
On 9/21/2013 11:12 PM, Kiyoshi Sasaki wrote: I have been trying to produce a conditional plot using coplot function (http://stat.ethz.ch/R-manual/R-devel/library/graphics/html/coplot.html) for a binary response ("Presence" in my case) variable and one continuous variable ("Overstory") given a s

[R] Conditioning plots (wth coplot function) with logistic regression curves

2013-09-21 Thread Kiyoshi Sasaki
I have been trying to produce a conditional plot using coplot function (http://stat.ethz.ch/R-manual/R-devel/library/graphics/html/coplot.html) for a binary response ("Presence" in my case) variable and one continuous variable ("Overstory") given a specific levels of the other continuous variabl