Compute area under density estimation curve, i.e., probability
<p>I have a density estimate (using <code>density</code> function) for my data <code>learningTime</code> (see figure below), and I need to find probability <code>Pr(learningTime &gt; c)</code>, i.e., the the area under density curve from a given number <code>c</code> (the red vertical line) to the end of curve. Any idea?</p>

<p><a href="https://i.stack.imgur.com/9YrBE.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/9YrBE.jpg" alt="enter image description here"></a></p>