I am trying to plot a CDF plot using ecdf()
function using the following code:
> x<-ecdf(data$V6)
> summary(x)
Empirical CDF: 2402 unique values with summary
Min. 1st Qu. Median Mean 3rd Qu. Max.
3392 71870 120100 386100 219000 158600000
plot(x, log='x')
Error in plot.window(...) : Logarithmic axis must have positive limits
My dataset grows exponentially so I want to have log scale on x axis. When I don't use log="x"
it works but the plot is not good. I need the x axis to be logarithmic. Any ideas?