Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using scale_colour_xxx throws a warning with recent ggplot2 #25

Closed
DanChaltiel opened this issue Mar 14, 2024 · 4 comments · Fixed by #26
Closed

Using scale_colour_xxx throws a warning with recent ggplot2 #25

DanChaltiel opened this issue Mar 14, 2024 · 4 comments · Fixed by #26

Comments

@DanChaltiel
Copy link
Contributor

Hi,

Thank you for this wonderful package.

Using scale_colour_xxx() throws a warning with recent ggplot2:

Warning message:
The `scale_name` argument of `discrete_scale()` is deprecated as of ggplot2 3.5.0.

It seems to pertain to this line :

discrete_scale("fill", "lancet", pal_lancet(palette, alpha), ...)

From what I understood from tidyverse/ggplot2#1312, the deprecation means that the name should be simply removed: discrete_scale("fill", palette=pal_lancet(palette, alpha), ...).

@nanxstats
Copy link
Owner

Thanks! Fixed in #26.

@nanxstats
Copy link
Owner

ggsci 3.0.2 is now on CRAN: https://cran.r-project.org/package=ggsci

@flyingicedragon
Copy link

ggsci 3.0.2 is now on CRAN: https://cran.r-project.org/package=ggsci

Please use ggplot2 (>= 3.5.0) in DESCRIPTION as ggsci can't work with older version of ggplot after this change.

@nanxstats
Copy link
Owner

Please use ggplot2 (>= 3.5.0) in DESCRIPTION as ggsci can't work with older version of ggplot after this change.

Thanks for spotting this issue. I'm on it: #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants