Closed ptoche closed 1 year ago
Plot not showing above for some reason, so here:
The legend does not use the layer data, only the scales and the draw_key
from the geometry. I think that changing the code to enable this would probably be a lot of work.
I think discussion about smarter guide/layer interactions should be continued in #3648.
However, geom_smooth()
doesn't drop that fill level at all. It just sets the ymin/ymax
aesthetics to NA
because the standard error couldn't be calculated. So even if we would get guides to be smarter, it is still unlikely that this case can be detected. I don't think it is currently worth it to special-case such situation.
The
se
fill when variablefactor(gear)
is equal to5
is dropped from the plot, but still appears in the legend. I think it should be dropped from the legend too.