What version of R are you using?

x = ecdf(rnorm(50)); y = ecdf(rnorm(50))

plot(x); lines(y, col=2)

works for me on R 2.13.1. Specifically, there is a lines.stepfun method
(albeit non-visible) which handles this.

Michael

On Sat, Sep 24, 2011 at 12:23 PM, Adel ESSAFI <adel.safi@imag.fr> wrote:

> Hello,
>
> is ot possible to draw two ecdf of vectors (say s1 and s2) on the same
> figire with R.
>
> plot function draws a new plot and there is no function like points or
> lines
> to draw a second ecdf on the figure.
>
> Regards
>
>
> --
> *PhD candidate in Computer Science
> Address
> 3 avenue lamine, cité ezzahra, Sousse 4000
> Tunisia
> tel: +216 97 246 706
> fax: +216 71 391 166*
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>

	[[alternative HTML version deleted]]

