Closed grabear closed 6 years ago
Hi @grabear
Thank you for pointing it out, we may consider implementing that. It will probably not be in the near future though, so for now I can just show you how to do it manually:
library(ampvis2)
library(tidyverse)
d <- amp_subset_taxa(AalborgWWTPs,
c("p__Actinobacteria",
"p__Bacteroidetes",
"p__Cyanobacteria",
"p__Firmicutes",
"p__Proteobacteria"))
res <- amp_ordinate(d,
type = "CA",
transform = "hellinger",
detailed_output = TRUE)
ggplot(res$dspecies, aes_string(x = "CA1",
y = "CA2",
color = "Phylum")) +
geom_point() +
theme_classic()
Ok! Thanks I might work on that if you're not opposed to it? @KasperSkytte
Sure, give it a go! :)
@grabear I know this is from February, but did you give it a go? If so then there is no reason to spend time that has already been spent implementing it :)
I'm having trouble getting an ordination plot without samples. All I want is the OTU ordination plot as in phyloseq.