Re: [R] overlap cdf plots and add colors and etc

2010-11-25 Thread Peter Ehlers
) is in the posting guide, but it seems that nobody wants to read that quite brief document. Peter Ehlers From: Jorge Ivan Velezjorgeivanve...@gmail.com Cc: r-help@r-project.org Sent: Thu, November 25, 2010 4:46:37 PM Subject: Re: [R] overlap cdf plots and add

Re: [R] overlap cdf plots and add colors and etc

2010-11-25 Thread Roslina Zakaria
...@gmail.com; r-help@r-project.org r-help@r-project.org Sent: Fri, November 26, 2010 12:52:56 AM Subject: Re: [R] overlap cdf plots and add colors and etc On 2010-11-24 22:24, Roslina Zakaria wrote: Hi Jorge, I tried but still it does not work.  Thank you for your time. Jorge's code works

[R] overlap cdf plots and add colors and etc

2010-11-24 Thread Roslina Zakaria
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.

Re: [R] overlap cdf plots and add colors and etc

2010-11-24 Thread Jorge Ivan Velez
Hi Roslina, Try par(mar=c(4,4,2,1.2),oma=c(0,0,0,0),xaxs=i, yaxs=i) plot(ecdf(rnorm(100))) plot(ecdf(rnorm(100)), add = TRUE, col = 2) HTH, Jorge On Thu, Nov 25, 2010 at 12:18 AM, Roslina Zakaria wrote: Hi r-users, I would like to overlap 2 ecdf plots. I tried this below and it gives

Re: [R] overlap cdf plots and add colors and etc

2010-11-24 Thread Roslina Zakaria
Hi Jorge, I tried but still it does not work.  Thank you for your time. From: Jorge Ivan Velez jorgeivanve...@gmail.com Cc: r-help@r-project.org Sent: Thu, November 25, 2010 4:46:37 PM Subject: Re: [R] overlap cdf plots and add colors and etc Hi Roslina