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

plot(x, option = "screeplot") #94

Open
DrGonEWilD opened this issue Oct 28, 2024 · 3 comments
Open

plot(x, option = "screeplot") #94

DrGonEWilD opened this issue Oct 28, 2024 · 3 comments

Comments

@DrGonEWilD
Copy link

Warning message:
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 pcadapt package.
Please report the issue at https://github.com/bcm-uga/pcadapt/issues.
This warning is displayed once every 8 hours.
Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.

lifecycle::last_lifecycle_warnings()
[[1]]
<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 pcadapt package.
Please report the issue at https://github.com/bcm-uga/pcadapt/issues.


Backtrace:

  1. ├─base::plot(pcadapt_result, option = "screeplot")
  2. ├─base::plot(pcadapt_result, option = "screeplot")
  3. └─pcadapt:::plot.pcadapt(pcadapt_result, option = "screeplot")
  4. └─pcadapt::scree_plot(x, K)
  5. └─ggplot2::guides(colour = FALSE)
    
  6.   └─ggplot2:::deprecate_warn0("3.3.4", "guides(`<scale>` = 'cannot be `FALSE`. Use \"none\" instead')")
    
@privefl
Copy link
Member

privefl commented Oct 28, 2024

Reproducible example:

library(pcadapt)
path_to_file <- system.file("extdata", "geno3pops.bed", package = "pcadapt")
filename <- read.pcadapt(path_to_file, type = "bed")
x <- pcadapt(input = filename, K = 20) 
plot(x, option = "screeplot")

@privefl
Copy link
Member

privefl commented Oct 28, 2024

I'll try to update the ggplot code from {pcadapt}.

@privefl
Copy link
Member

privefl commented Oct 28, 2024

Basically all the functions here:

Tell me if you want to submit a PR yourself.

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

2 participants