Hi Mary, One can use arrows too...
Here is the code : x<-seq(75,225,0.1) plot(x,dnorm(x,mean=140, sd=15), type='l', col='navy') *arrows(149,0,149,dnorm(149,140,15),length=0) *par(new=T) plot(x,dnorm(x,mean=150, sd=15), type='l', col='orange',axes=F) Regards Radha On Sun, Jul 26, 2009 at 5:09 AM, Mary A. Marion <mms...@comcast.net> wrote: > Hello, > > I am plotting two distributions and want to draw a vertical line at the > critical point 149. > How can I stop it from going further up than the norm(140,15) curve? > > x<-seq(75,225,0.1) > plot(x,dnorm(x,mean=140, sd=15), type='l', col='navy') > abline(v = 149, col = "black") > curve(dnorm(x,mean=150, sd=15),from=75, to=225, col='orange', add=TRUE) > > Thank you. > > Sincerely, > Mary A. Marion > > ______________________________________________ > R-help@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. > [[alternative HTML version deleted]] ______________________________________________ R-help@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.