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

The <scale> argument of guides() cannot be FALSE deprecation #161

Open
artur-sannikov opened this issue May 10, 2024 · 0 comments
Open

The <scale> argument of guides() cannot be FALSE deprecation #161

artur-sannikov opened this issue May 10, 2024 · 0 comments

Comments

@artur-sannikov
Copy link

As of ggplot 3.3.4, I get this warning:

Warning: The `<scale>` argument of `guides()` cannot be `FALSE`. Use "none" instead as of ggplot2 3.3.4.
ℹ The deprecated feature was likely used in the MOFA2 package.
  Please report the issue at <https://github.com/bioFAM/MOFA2>.
This warning is displayed once every 8 hours.
Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
<warning/lifecycle_warning_deprecated>
Warning:
The `<scale>` argument of `guides()` cannot be `FALSE`. Use "none" instead as of ggplot2 3.3.4.
ℹ The deprecated feature was likely used in the MOFA2 package.
  Please report the issue at <https://github.com/bioFAM/MOFA2>.
---
Backtrace:
    ▆
 1. └─MOFA2::plot_dimred(model, method = "UMAP", color_by = "treatment_code")
 2.   └─ggplot2::guides(alpha = FALSE)
 3.     └─ggplot2:::deprecate_warn0("3.3.4", "guides(`<scale>` = 'cannot be `FALSE`. Use \"none\" instead')")

I think, it's required to change to p <- p + guides(alpha=none) here. I can create a pull request.

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

No branches or pull requests

1 participant