I am currently experiencing an issue with the gghdr package in R. I’m trying to generate HDR boxplots, but I keep getting an error message. The code I’m using is as follows:
library(ggplot2)
library(gghdr)
ggplot(faithful, aes(y = eruptions)) +
geom_hdr_boxplot()
However, when I run this code, I get the following error message:
Error in if (guide$reverse) { : argument is of length zero
In addition: Warning message:
The following aesthetics were dropped during statistical transformation: y.
ℹ This can happen when ggplot fails to infer the correct grouping structure in the data.
ℹ Did you forget to specify a `group` aesthetic or to convert a numerical variable into a
factor?
If anyone could provide some insight into what might be causing this issue and how I can fix it, I would greatly appreciate it.
Thank you!