
Last chance! 50% off unlimited learning
Sale ends in
PlotECDF(x, breaks = NULL, col = getOption("col1", hblue), ylab = "", lwd = 2,
xlab = NULL, cex.axis = NULL, ...)
hist
. If left to NULL
, no histogram will be used.plot.ecdf
if any results are required.plot.ecdf
is fine for vectors that are not too large. However for n ~ 1e7 it will be real slow. PlotECDF is designed as alternative for quicker plotting the ecdf for larger vectors. If breaks
are provided as argument, a histogram with that number of breaks will be calculated and the ecdf will use those frequencies instead of respecting every single point.
Note that a plot will rarely need more than ~1'000 points on x to be quite precise. PlotFdist will use this number of breaks by default.plot.ecdf
, PlotFdist
PlotECDF(d.pizza$temperature)
# make large vector
x <- rnorm(n=1e7)
# plot only 1000 points instead of 1e7
PlotECDF(x, breaks=1000)
Run the code above in your browser using DataLab