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
I found a potential problem with the widths of bars using geom_bar when using factor levels, and keeping unused levels with drop = F argument in scale_x_discrete. This can be overcome by setting the width in aesthetic but thought the variable nature of widths in plotting might be an issue.
This is indeed unfortunate. Given that resolution(), which determines the default width, makes a special case for integers; should it also use that case for the "mapped_discrete" class? See:
I found a potential problem with the widths of bars using
geom_bar
when using factor levels, and keeping unused levels withdrop = F
argument inscale_x_discrete
. This can be overcome by setting thewidth
in aesthetic but thought the variable nature of widths in plotting might be an issue.Here is the code to reproduce the bug:
Created on 2023-02-28 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: