Hi r-users,
 
I would like to compare the cdf between historical and predicted. My x.obs and x.pre are the frequency data in classes of 0-300.
I tried:

plot(ecdf(x.obs),ecdf(x.pre),type="l",col="red")
 
and it gives me:

Error in plot.stepfun(x, ..., ylab = ylab, verticals = verticals, pch = pch) : 
  argument 4 matches multiple formal arguments
 
Thank you so much for any help given.


      
	[[alternative HTML version deleted]]


