Open davidhodge931 opened 2 months ago
I think you can already specify padding using the width
aesthetic and the position_dodge(width)
parameter. Is there an example that is inconvenient where padding
would alleviate some gnarlyness?
Ah I see, I didn't think of this! No, I can't think of an example that could not be achieved by using that method.
Still though, conceptually, if position_dodge
and position_dodge2
are intended to be the same other than the grouping variable thing, then they should have the same arguments? So, either add padding
to position_dodge
or deprecate it from position_dodge2
if not needed. Likewise for reverse
.
Feel free to close
Just as this is sometimes useful in
position_dodge2
, it could be useful at times inposition_dodge
It would also be a way to have borders around dodged bars, and resolve issues with positioning noted in https://github.com/tidyverse/ggplot2/issues/5997