You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we're allowing gradients in geom_ribbon() and derivatives, the following caught my attention.
In the example below, we simply want to vary the gradient along x, so top and bottom gradients should match.
However, the gradient is misplaced because the second group has a missing value (note it starts with dark blue in the middle).
In either case, this seems to be an incorrect implementation of na.rm. In all other geoms it has no effect other than suppressing a warning. But here it seems to alter the data.
From the geom_point() documentation (as one example):
Now that we're allowing gradients in
geom_ribbon()
and derivatives, the following caught my attention.In the example below, we simply want to vary the gradient along
x
, so top and bottom gradients should match.However, the gradient is misplaced because the second group has a missing value (note it starts with dark blue in the middle).
The gradients are drawn correctly if missing values are removed properly.
Created on 2024-12-16 with reprex v2.1.1
I think there are two things wrong with this when
na.rm = FALSE
:I traced this decision to a remedy against #1549.
The text was updated successfully, but these errors were encountered: