[R] graphs

Steve Lianoglou mailinglist.honeypot at gmail.com
Sat Jul 25 22:51:39 CEST 2009


Hi Mary,

On Jul 25, 2009, at 7:39 PM, Mary A. Marion 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)


Check ?segments

-steve

--
Steve Lianoglou
Graduate Student: Computational Systems Biology
   |  Memorial Sloan-Kettering Cancer Center
   |  Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact




More information about the R-help mailing list