harrelfe / Hmisc

Harrell Miscellaneous
Other
208 stars 81 forks source link

Suppress Ecdf plot #84

Closed indrajitsg closed 6 years ago

indrajitsg commented 6 years ago

Is there a way to suppress the plot generated when calling the Ecdf function? I just need to generate the coordinates.

harrelfe commented 6 years ago

No way to suppress. Just use the R base function ecdf which returns coordinates, I believe.

indrajitsg commented 6 years ago

No I need to use this function as it incorporates weights. Thanks anyway. Would you add that option in future release?

harrelfe commented 6 years ago

In looking at the code for Ecdf.default I see that it already does exactly what you want. You can specify pl=FALSE and the coordinates are already returned invisibly. So just store the result in an object you can reference.

indrajitsg commented 6 years ago

This is perfect. Thanks a lot.