Re: [R] overlay plot question

2009-02-05 Thread Doran, Harold
-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of David Kaplan > Sent: Wednesday, February 04, 2009 5:25 PM > To: r-h...@stat.math.ethz.ch > Subject: [R] overlay plot question > > Greetings all, > > I have two logistic plots coming from two calls to plogis. &

Re: [R] overlay plot question

2009-02-04 Thread David Freedman
You could change the second 'plot' to 'points' David Freedman David Kaplan-2 wrote: > > Greetings all, > > I have two logistic plots coming from two calls to plogis. The code is > > .x <- seq(-7.6, 7.6, length=100) > plot(.x, plogis(.x, location=0, scale=1), xlab="x", ylab="Density", > ma

[R] overlay plot question

2009-02-04 Thread David Kaplan
Greetings all, I have two logistic plots coming from two calls to plogis. The code is .x <- seq(-7.6, 7.6, length=100) plot(.x, plogis(.x, location=0, scale=1), xlab="x", ylab="Density", main="Logistic Distribution: location = 0, scale = 1", type="l") abline(h=0, col="gray") .y <- seq(-7.6,