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
From this thread on StackOverflow, it appears that this worked as expected in version 3.3.3. I have tested version 3.3.4 and the development version from GitHub, and the unused level persists in the legend for both.
It appears a bug was introduced in version 3.3.4. When using
scale_fill_manual()
, unused levels persist in the legend. Here is some example data.When all levels are present, things work as expected:
But when
grp = "C"
is no longer in the data, that value still persists in the legend.From this thread on StackOverflow, it appears that this worked as expected in version 3.3.3. I have tested version 3.3.4 and the development version from GitHub, and the unused level persists in the legend for both.
Created on 2021-07-06 by the reprex package (v2.0.0)
Session info
The text was updated successfully, but these errors were encountered: