[R] Color of ecdf plots

Uwe Ligges ligges at statistik.tu-dortmund.de
Fri Jul 3 18:24:18 CEST 2009



Lars Bergemann wrote:
> Hi.
> 
>  
> 
> I have the following two ecdf plots in one graph:
> 
>  
> 
>  plot(
>   ecdf(....),
>   do.points=FALSE,
>   verticals=TRUE,
>   main=paste("Ecdf of distances ",DIM,sep=""),
>   col="red"
>  );
>  lines(
>   ecdf(....),
>   do.points=FALSE,
>   verticals=TRUE
>  );
> 
>  
> 
> How do I change the color of the resulting graph? Adding col="red" to either plot or lines results in an error ...


... but works for me.

Hence please specify your version of R, OS, exactly reproducible code 
(above the argument to ecdf are missing, obviously).

Best,
Uwe Ligges


>  
> 
> Thanks!
> 
> Lars
> 
> _________________________________________________________________
> [[elided Hotmail spam]]
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at 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.




More information about the R-help mailing list