title: Plotting CDF of a dataset in R?
body: <p>I am not really sure about the difference between CDF (Cumulative Distribution Function) and ECDF (Empirical Cumulative Distribution Function) but I usually utilize a CDF plot to make observations about my data. </p>
  
  <p>I have been using R recently and am desperately trying to find out how to plot a CDF and CCDF (Complementary CDF) of my data. All I could find was that R has ecdf but am not really sure if this is what I am looking for. Plotting an ECDF is as simple as:</p>
  
  <pre><code>plot.ecdf(data)
  </code></pre>
  
  <p>Does anyone know how to plot a CDF and CCDF of a dataset using R?</p>