title: How to find the x-value given the y-value from a plot in R
body: <p>I am using R 3.4.3, and plotting the following function: </p>
  
  <pre><code>x =  rnorm(5000,20,30)
  cdf_1 &lt;- ecdf(x)  
  plot(cdf_1, xlabs="x0",  
       ylabs="y0")
  </code></pre>
  
  <p>This gives me the following plot:
  <a href="https://i.stack.imgur.com/UP1qM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UP1qM.png" alt="enter image description here"></a></p>
  
  <p>Now, the plot doesn't take the given labels x0 and y0. How to solve this?</p>
  
  <p>Also, how do I get the value of x for y=0.95.
  I have tried using label names, but it throws error.
  Kindly suggest.</p>