Closed
Description
#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.
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)
Created on 2022-08-22 with reprex v2.0.2
Metadata
Metadata
Assignees
Labels
No labels