Édouard Tallent's blog

Main menu

Post navigation

PDF and CDF for normal distributions with R

Below, we give the R code to plot the PDF and the CDF for normal distributions. We wish to get charts quite similar to the ones read on Wikipedia (Normal Distribution). The resulting charts are shown at the bottom.

Notice that we don’t resort to any specific R library. Also notice that the code below was written and run using Eclipse/StatET. Some line breaks may cause difficulties depending on your GUI.