#3672 introduced `linewidth` to Geoms. On the other hand, `element_rect()` and `element_line()` still uses `size`. Do we need to rename them for consistency? Currently, this doesn't work. ``` r library(ggplot2) ggplot(mpg, aes(x = hwy, y = cty, color = drv)) + geom_point() + theme( legend.key = element_rect(linewidth = 3, colour = "red") ) #> Error in element_rect(linewidth = 3, colour = "red"): unused argument (linewidth = 3) ``` <sup>Created on 2022-08-22 with [reprex v2.0.2](https://reprex.tidyverse.org)</sup>