[R] lines, ecdf and colors
jholtman at gmail.com
Sat Nov 8 19:58:35 CET 2008
On Sat, Nov 8, 2008 at 1:39 PM, eric lee <ericlee100 at gmail.com> wrote:
> Hi. I'm trying to plot two ecdf's on the same graph using two
> different colors. I can plot using the same color, but it doesn't
> work when I change colors? Any suggestions? Thanks in advance for
> your help.
> x <- c(0.80, 0.83, 1.89, 1.04, 1.45, 1.38, 1.91, 1.64, 0.73, 1.46)
> y <- c(1.15, 0.88, 0.90, 0.74, 1.21)
> # it works without col='blue', but doesn't with it
> lines(ecdf(y), col = "blue")
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help