[R] Help with multiple graphs on one set of axis

kjetil@entelnet.bo kjetil at entelnet.bo
Wed Feb 18 17:07:46 CET 2004


On 17 Feb 2004 at 11:13, Phillip Good wrote:

> Can you suggest code to plot two cumulative distribution functions on
> the same set of axis?
> 

> library(stepfun)
> x <- rnorm(100)
> y <- rnorm(110, 0.5)
> plot(ecdf(x), col.p="red",col.h="red",col.v="red")
> plot(ecdf(y),add=TRUE, col.p="blue",col.h="blue",col.v="blue")

Kjetil Halvorsen


> Phillp Good
> 
> "Never trust anything that can think for itself if you can't see where
> it keeps its brain."  Mr. Weasley
>  [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html




More information about the R-help mailing list