[prev in list] [next in list] [prev in thread] [next in thread]
List: r-help
Subject: Re: [R] Still puzzled about different graph
From: Martin_Møller_Skarbiniks_Pedersen <traxplayer () gmail ! com>
Date: 2021-04-24 22:27:31
Message-ID: CAGAA5bcKPdEvUSKT_=kh9LTkXWJo4WmvCfsHvqRr_UYktKoniA () mail ! gmail ! com
[Download RAW message or body]
>
> 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.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic