Displaying 1 result from an estimated 1 matches for "gam_sum_gen".
2010 Nov 25
1
overlap cdf plots and add colors and etc
Hi r-users,
I would like to overlap 2 ecdf plots.  
I tried this below and it gives me two plots of ecdf but just both just in 
black.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
plot(ecdf(datobs))
lines(ecdf(gam_sum_gen))
Then I try to add colors etc and also the legend but fail.
par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs="i", yaxs="i")
plot(ecdf(datobs),main ="CDF of the sum for winter 
season-Hume",cex.axis=1.2,xlab="Rainfall (mm)", pch = 
pch,verticals=TRUE,col=c("bl...