njudd / ggrain

{package} Make beautiful Raincloud plots in R!
Other
67 stars 4 forks source link

Error generating geom_rain: 'gpar' element 'lwd' must not be length 0 #4

Closed matthew-robison closed 1 year ago

matthew-robison commented 1 year ago

I am trying to generate a raincloud plot, but I am encountering the following error:

Error in check.length(gparname) : 'gpar' element 'lwd' must not be length 0

I tried first with my own data, but this error happens even if I run the following:

ggplot(iris, aes(Species, Sepal.Width, fill = Species)) + geom_rain(alpha = .5)

I had first tried to use the ggrain package and was being told my version of vctrs was outdated (0.4.1), so I updated to 0.5.2.

I appreciate any help.

njudd commented 1 year ago

Can you check your ggplot version and update to 3.4.1? It could be that

matthew-robison commented 1 year ago

that worked! Sorry I didn't think of that sooner.

njudd commented 1 year ago

Re-opening this issue until ggrain v 0.0.3 comes out with the requirement for ggplot2 =>3.4.0.

I will wait a month in case new bugs or features come up.

njudd commented 1 year ago

v0.0.3 out