[R] multiple plots in a graph

Uwe Ligges ligges at statistik.uni-dortmund.de
Thu Jul 12 21:54:42 CEST 2007



Ajay Singh wrote:
> Hi,
> I have to generate 10 cdfs in a graph. I need to compare the cdf's 
> nature by plotting ten cdfs in a graph. Thus, I need multiple plots in a 
> graph.
> I would appreciate if you could give some solution to the problem asap.


  plot(ecdf(rnorm(10)))
  plot(ecdf(rnorm(12)), add=TRUE, col.points="red", col.hor="red")

etc...


Uwe Ligges


> Thanking you,
> 
> Sincerely,
> 
> Ajay.
>



More information about the R-help mailing list