[R] help overlay scatterplot to effects plot

Greg Snow Greg.Snow at imail.org
Wed May 5 21:49:49 CEST 2010

We cannot reproduce your example, don't have the data (or don't know where it is if we do) and where did the allEffects function come from?

If this just makes a regular plot using base graphics and not messing with the user coordinates, then you can just use the points function to add additional points to the plot.

Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org

> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Anderson, Chris
> Sent: Tuesday, May 04, 2010 11:06 AM
> To: 'r-help at R-project.org'
> Subject: [R] help overlay scatterplot to effects plot
> I have a process where I am creating a effects plot similar to the
> cowles effect example. I would like to add the point estimates to the
> effects plot, can someone show me the correct syntax. I have included
> the "R" effects example, so you can show me the correct syntax. Thanks
> mod.cowles <- glm(volunteer ~ sex + neuroticism*extraversion,
>     data=Cowles, family=binomial)
> eff.cowles <- allEffects(mod.cowles, xlevels=list(neuroticism=0:24,
>     extraversion=seq(0, 24, 6)), given.values=c(sexmale=0.5))
> eff.cowles
> plot(eff.cowles, 'neuroticism:extraversion', ylab="Prob(Volunteer)",
>     ticks=list(at=c(.1,.25,.5,.75,.9)))
> Chris Anderson
> Data Analyst
> Medical Affairs
> wk: 925-677-4870
> cell: 707-315-8486
> Fax:925-677-4670
> </pre><br>This electronic message transmission, including any
> attachments, contains <br>information which may be confidential,
> privileged and/or otherwise exempt <br>from disclosure under applicable
> law. The information is intended to be for the <br>use of the
> individual(s) or entity named above. If you are not the intended
> <br>recipient or the employee or agent responsible for delivering the
> message <br>to the intended recipient, you are hereby notified that any
> disclosure, copying, <br>distribution or use of the contents of this
> information is strictly prohibited.  If <br>you have received this
> electronic transmission in error, please notify the sender
> <br>immediately by telephone (800-676-6777) or by a "reply to sender
> only" <br>message and destroy all electronic and hard copies of the
> communication, <br>including attachments.  Thank you.<br><br>For more
> information on Paradigm Management Services, LLC, please visit
> <br>http://www.paradigmcorp.com <br>
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org 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.

More information about the R-help mailing list