Re: [R] need smooth cdf lines

2010-11-21 Thread Michael Bedward
Ah, this looks like Australian data :) One simple way would be to use the lowess function and fiddle with the f parameter (like bandwidth). Michael On 22 November 2010 14:18, Roslina Zakaria wrote: > Hi, > > I would like to overlap the cdf curve for observed and generated data  Here is > my cod

[R] need smooth cdf lines

2010-11-21 Thread Roslina Zakaria
Hi, I would like to overlap the cdf curve for observed and generated data  Here is my code: plot(cdf,main ="CDF of the sum for winter season-Hume",cex.axis=1.2,xlab="Rainfall (mm)", xaxs="i",yaxs="i",col=c("black","red"), lty=c(1,1),ylab="Cumulative probability", xlim=c(0,800),lwd=1) lines(ecd