Re: [R] based on mean and std

2011-06-02 Thread Patrick Breheny
You could try: f <- function(x){pnorm(x,mean=10,sd=20)} curve(f,from=-10,to=30) Or: x <- seq(-10,30,len=101) y <- pnorm(x,mean=10,sd=20) plot(x,y,type="l") -- Patrick Breheny Assistant Professor Department of Biostatistics Department of Statistics University of Kentucky On 06/02/2011 07:05 AM

Re: [R] based on mean and std

2011-06-02 Thread Stephen Ellison
#Note use of the function definition to include explicit mean and sd S Ellison > -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Alaios > Sent: 02 June 2011 12:06 > To: R-help@r-project.org > Subject: [R] base

[R] based on mean and std

2011-06-02 Thread Alaios
Dear all, I have a few gaussian distributions with known (mean and sd). How can I plot in R easily the cdf of them? In matlab there is a guid where you can give the values and have the plots ready. Is anything like that in R? Best Regards Alex __ R-