[R] Highlight Points in a Plot

David Winsemius dwinsemius at comcast.net
Mon May 3 19:34:32 CEST 2010

On May 3, 2010, at 12:28 PM, SamT wrote:

> Hi,
> I have plotted a cdf using the ecdf function with plot().

Code would make this concrete.

>  I want to
> highlight/identify points on the same plot.  Also, because this is a  
> cdf I
> am not sure of the y coords for the point, otherwise I thought of  
> using
> highlight in the NCStats package.

The y coordinate is just ecdf(object)(x.value)

... since ecdf returns a function, you get to use it as a function.  
a beautiful tool. Thank you Martin Maechler.

> Thanks
> -- 

David Winsemius, MD
West Hartford, CT

More information about the R-help mailing list