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
Not sure if this is worth opening an issue - I just went through the forcats 1.0.0 tidyverse blog article and found it mildly confusing at first glance. The introduction of fct_na_value_to_level() to the plot doesn't do anything; the plot printed below is exactly the same.
We can make fct_infreq() do what we want by moving the NA from the values to the levels:
Not sure if this is worth opening an issue - I just went through the forcats 1.0.0 tidyverse blog article and found it mildly confusing at first glance. The introduction of
fct_na_value_to_level()
to the plot doesn't do anything; the plot printed below is exactly the same.I would find it more instructive to rename the NA level in the same step to show that ggplot will then properly adjust:
Otherwise it is easy to miss this bit because it appears only in the context of lumping factor levels together further down below:
The text was updated successfully, but these errors were encountered: