title: Easier way to plot the cumulative frequency distribution in ggplot?
body: <p>I'm looking for an easier way to draw the cumulative distribution line in ggplot.</p>
  
  <p>I have some data whose histogram I can immediately display with</p>
  
  <pre><code>qplot (mydata, binwidth=1);
  </code></pre>
  
  <p>I found a way to do it at <a href="http://www.r-tutor.com/elementary-statistics/quantitative-data/cumulative-frequency-graph" rel="noreferrer">http://www.r-tutor.com/elementary-statistics/quantitative-data/cumulative-frequency-graph</a> but it involves several steps and when exploring data it's time consuming.</p>
  
  <p>Is there a way to do it in a more straightforward way in ggplot, similar to how trend lines and confidence intervals can be added by specifying options?</p>