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, Alaios wrote:
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-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.
______________________________________________ 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.