My aim is to generate a cumulative distribution function made with steps, using the parameter type="s"
, but when i try for example
plot(ecdf(rgeom(0:40,0.3)), type="s")
it says the error
Error in plot.default(NA, NA, type = "n", xlim = xlim, ylim = ylim, xlab = xlab, : formal argument "type" matched by multiple actual arguments
What to do?