[R] Dashed/dotted ecdf plots using lots of points

A A awawaed at yahoo.com
Mon Jun 13 22:57:34 CEST 2016


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?
	[[alternative HTML version deleted]]



More information about the R-help mailing list