Re: [R] Color of ecdf plots

2009-07-04 Thread roger koenker
having been bitten by this behavior many times, could I register a plea for allowing a col argument to plot.stepfun that would deal with both the horizontal and vertical segments -- I rather doubt that it is often desirable to have different colors for these. Note that verticals = TRUE is t

Re: [R] Color of ecdf plots

2009-07-03 Thread David Winsemius
Does not work for me with rnorm(20) as an argument. (And supplying a dummy value for DIM.) The error after fixing the missing DIM issue was: Error in plot.stepfun(x, ..., ylab = ylab, verticals = verticals, pch = pch) : argument 4 matches multiple formal arguments The help page for plot.ec

Re: [R] Color of ecdf plots

2009-07-03 Thread Uwe Ligges
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 c

[R] Color of ecdf plots

2009-07-03 Thread Lars Bergemann
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?