[R] Highlight Points in a Plot
dwinsemius at comcast.net
Mon May 3 19:34:32 CEST 2010
On May 3, 2010, at 12:28 PM, SamT wrote:
> 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
> 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.
David Winsemius, MD
West Hartford, CT
More information about the R-help