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

Problem with function plot_composition() #19

Open
refinedfan opened this issue Dec 26, 2023 · 0 comments
Open

Problem with function plot_composition() #19

refinedfan opened this issue Dec 26, 2023 · 0 comments

Comments

@refinedfan
Copy link

Sometimes when I use plot_composition() function, I got the problem showing in the figure below, some of the bar is not filled to 100%. As I understand, the relative abundance should be calculated when using this function, I can not find the reason why this happens. Could you help take a look?

mycol<-paletteer_d("ggthemes::Classic_20",n=20)
p <- plot_composition(my_phylo.filt, "Domain", "d__Bacteria", "Genus", numberOfTaxa = 8, fill = "Genus")
p <- p + facet_wrap(~Group, scales = "free_x",nrow = 1)
p <- p + scale_fill_manual(values=rev(mycol))
plot(p)

image

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