I am sure you need to set the group-aesthetics in geom_line() to Color,
but without having an example dataset, i cant really tell. But
forgetting to set the group-argument in geom_line usually leads to
undesired results.
Maybe you can put forward your input data (as per dput(df)), so i can
have a look.
> --
> --
> You received this message because you are subscribed to the ggplot2
> mailing list.
> Please provide a reproducible example:
>
https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email
ggp...@googlegroups.com
> To unsubscribe: email
ggplot2+u...@googlegroups.com
> More options:
http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google
> Groups "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
ggplot2+u...@googlegroups.com
> <mailto:
ggplot2+u...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
--
Tim Richter-Heitmann (M.Sc.)
PhD Candidate
International Max-Planck Research School for Marine Microbiology
University of Bremen
Microbial Ecophysiology Group (AG Friedrich)
FB02 - Biologie/Chemie
Leobener Straße (NW2 A2130)
D-28359 Bremen
Tel.: 0049(0)421 218-63062
Fax: 0049(0)421 218-63069