ggplot2 icon indicating copy to clipboard operation
ggplot2 copied to clipboard

Set `width` as aesthetic in `geom_col()`/`geom_bar()`.

Open teunbrand opened this issue 3 months ago • 0 comments

This PR aims to fix #3142.

Motivation is given here: https://github.com/tidyverse/ggplot2/issues/3142#issuecomment-2019903367. To recap: yes variable width bars are bad, but we allowed them implicitly anyway and are jumping through hoops to clunkily discourage it. This PR removes the hack that recognises width as a parameter, and implements it as an aesthetic instead.

teunbrand avatar Mar 26 '24 10:03 teunbrand