>
> I don't know where it says this in the docs, but generally speaking
> ggplot2 graphs don't evaluate everything until you print them.  So I'd
> expect p3's two geom_path components to be identical, even though you
> changed idx.
>
> I think you can force evaluation before printing (using ggplot_build),
> but I don't think you can modify the graph after that, so you'll need
> two different variables instead of changing idx.
>
> Duncan Murdoch


Thanks. Now I understand the problem and can find a solution.

Regards
Martin

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.

Reply via email to