teunbrand / ggh4x

ggplot extension: options for tailored facets, multiple colourscales and miscellaneous
https://teunbrand.github.io/ggh4x/
Other
533 stars 32 forks source link

S3 guide system deprecated in ggplot2 3.5.0 #160

Open jj-9 opened 1 month ago

jj-9 commented 1 month ago

Dear Teun van den Brand,

First, thank you for this package which brings a lot of useful features to ggplot2.

The new version of guides in ggplot pops a deprecated advice while using "guide" in scale_x_discrete.

This code of yours is sufficient to get the message :

ggplot(mpg, aes(interaction(cyl, class), hwy)) +
  geom_boxplot() +
  scale_x_discrete(guide = "axis_nested")

I didn't find a way to workaround this. Hopefully it will not be a blocking point.

Best regards JJ

teunbrand commented 1 month ago

Hi there,

Thanks for the report! The plan is to eventually move all guides to a separate package, but for now the warning should be harmless.

jj-9 commented 1 month ago

Dear Teun van den Brand,

thank you very much for your attention. The message is effectively just a warning for the moment.

Regards JJ