title: How do I extract ecdf values out of ecdfplot()
body: <p>If I use the <code>ecdfplot()</code> function of the <code>latticeExtra</code> package how do I get the actual values calculated i.e. the y-values which correspond to the <code>~x|g</code> input?</p>
  
  <p>I've been looking at <code>?ecdfplot</code> but there's not discription to it. For the usual highlevel function <code>ecdf()</code> it works with the command <code>plot=FALSE</code> but this does not work for <code>ecdfplot()</code>.</p>
  
  <p>The reason I want to use <code>ecdfplot()</code> rather than <code>ecdf()</code> is that I need to calculate the <code>ecdf()</code> values for a grouping variable. I know I could do this handish too but I'm quite convinced that there is a highroad too.</p>
  
  <p>Here a small expample</p>
  
  <pre><code>u &lt;- rnorm(100,0,1)
  mygroup &lt;- c(rep("group1",50),rep("group2",50))
  ecdfplot(~u, groups=mygroup)
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/CefxN.jpg" alt="enter image description here"></p>
  
  <p>I would like to extract the y-values given each group for the corresponding x-values.</p>