jbryer / likert

Package to analyze likert based items.
305 stars 124 forks source link

Warning message: The `size` argument of `element_rect()` is deprecated as of ggplot2 3.4.0. #127

Open XiangyunHuang opened 1 year ago

XiangyunHuang commented 1 year ago

following code will give a warning message now, because https://github.com/tidyverse/ggplot2/pull/3672

library(likert)
data("MathAnxiety")
math_anxiety <- likert(summary = MathAnxiety)
plot(math_anxiety, type = "bar", legend.position = "bottom")

Warning message: The size argument of element_rect() is deprecated as of ggplot2 3.4.0. Please use the linewidth argument instead.

Would you mind updatingplot() code.