title: Cumulative histogram with ggplot2
body: <p>How could I get a cumulative histogram like this</p>
  
  <pre><code>x &lt;- runif(100,0,10)
  h &lt;- hist(x)
  h[["counts"]] &lt;- cumsum(h[["counts"]])
  plot(h)
  </code></pre>
  
  <p>with ggplot2?</p>
  
  <p>I want also to draw a polygon like this</p>
  
  <pre><code>lines(h[["breaks"]],c(0,h[["counts"]]))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/18RMX.jpg" alt=""></p>