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

2010-11-25 Thread Roslina Zakaria
__ From: Peter Ehlers Cc: Jorge Ivan Velez ; "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 y

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

2010-11-25 Thread Peter Ehlers
nts to see reams of data; use rnorm(), etc, or built-in data if possible. 5. Figure out how to set your mail program to send plain text. I know the above (and more) is in the posting guide, but it seems that nobody wants to read that quite brief document. Peter Ehlers ____________

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 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, Try par(mar=c(4,4,2,1.2

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

[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.