On 11/8/07, Michael Kubovy <[EMAIL PROTECTED]> wrote:
> Dear r-helpers,
>
> I'm using ggplot2::ggplot to plot seven time series on the same graph.
>
> c <- ggplot(jobm, aes(y = value, x = year, colour = kind))
> c + stat_smooth()
>
> This gives me a legend with colors that are not very different. Can I
> label the lines instead? How?

Have a look at the examples at the bottom of
http://had.co.nz/ggplot2/geom_path.html for one way.  You might also
try using a colour brewer scale instead - e.g. +
scale_colour_brewer(palette = "Set1").  See display.brewer.all(n=7,
exact.n=FALSE) for a complete list of possibilities.

Hadley

-- 
http://had.co.nz/

______________________________________________
[email protected] 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.
  • [R] ggplot2 Michael Kubovy
    • Re: [R] ggplot2 hadley wickham

Reply via email to