0

I'm trying to do something very simple:

I'm using the library Hmisc in order to use the Ecdf function to get the x and y values that the function returns, but even when I assign it to a variable, the default plot is displayed.

library("Hmisc")
ecdf1 <- Ecdf(F) # Plot is displayed

How to avoid displaying the plot and only get the results?

Jilber Urbina
  • 58,147
  • 10
  • 114
  • 138
User 6683331
  • 692
  • 1
  • 13
  • 31

1 Answers1

0

set pl=FALSE

ecdf1 <- Ecdf(F, pl=FALSE) 

From Ecdf help file you can read:

set to F to omit the plot, to just return estimates
Jilber Urbina
  • 58,147
  • 10
  • 114
  • 138