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

Issue in ggdiffclade #123

Open
scoob24 opened this issue Jul 24, 2024 · 1 comment
Open

Issue in ggdiffclade #123

scoob24 opened this issue Jul 24, 2024 · 1 comment

Comments

@scoob24
Copy link

scoob24 commented Jul 24, 2024

Hi
I am trying to plot the differential analysis result as diffclade for visualisation using the following code

hmpdiffclade <- ggdiffclade(obj=hmpdiffres, alpha=0.3, size=0.2,
skpointsize=0.4, taxlevel=3,
settheme=TRUE,
setColors=FALSE) +
scale_fill_manual(values=c('#00AED7', '#FD9347', '#C1E168'))

When I am running ggdiffclade I am encountering this error.

hmpdiffclade <- ggdiffclade(obj=hmpdiffres, alpha=0.3, size=0.2,

  •                          skpointsize=0.4, taxlevel=3,
    
  •                          settheme=TRUE,
    
  •                          setColors=FALSE) +
    
  • scale_fill_manual(values=c('#00AED7', '#FD9347', '#C1E168'))
    Error in plot$scales$scales[[index]] :
    attempt to select less than one element in get1index

This is happening even with the example data .

Thanks in advance.

@xiangpin
Copy link
Member

Thanks, It is introduced by the newest ggnewscale (>=0.5.0). I have fixed the issue. Now You can re-install MicrobiotaProcess via remotes::install_github("YuLab-SMU/MicrobiotaProcess")

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