jrnold/ggthemes

geom_tufteboxplot errors as resolution function from ggplot2 is called

dleng2242 opened this issue · 0 comments

Hello,

When running geom_tufteboxplot without ggplot2 libraried in I get the following error:

Error in resolution(data$x %||% 0) : could not find function "resolution"

I believe ggplot2::resolution has been missed somewhere in the function, or simply ggplot2 needs to be in the package depends?

An example;

library(ggthemes)
ggplot2::ggplot(airquality, ggplot2::aes(factor(Month), Wind)) +
        geom_tufteboxplot()
> Error in resolution(data$x %||% 0) : could not find function "resolution"


library(ggplot2)
ggplot(airquality, aes(factor(Month), Wind)) +
        geom_tufteboxplot()
> all good

I understand for most practical cases this will not cause an issue - i'm writing tightly controlled tests under unusual conditions.

Thanks for your help,