Skip to content
Prev 361688 / 398506 Next

Dashed/dotted ecdf plots using lots of points

a a
As per the title, I'd like to generate a dashed/dotted CDF plot of my data using ecdf. Unfortunately, it seems like I can't get the plot to look dashed/dotted even after specifying it in the plot function. I suspect this may be because of the high number of data points. Here's a short sample of code that illustrates my issue:
#change to 1:100 to see the dotted line
x = 1:10000
e = ecdf(x)
plot(e,do.p=FALSE, lty = "dotted")
Is there a way to solve this problem?