phyloseq is a set of classes, wrappers, and tools (in R) to make it easier to import, store, and analyze phylogenetic sequencing data; and to reproducibly share that data and analysis with others. See the phyloseq front page:
I have also tried using the chull function but am having issues with this. Maybe someone can see where I am going wrong. I am not sure where to use the phyloseq object vs the ordination in this code or whether I need something else entirely since neither are dataframes.
try this one:
L<-unique(df$Location)
for (i in length(L)
{S<-df[df$Location == L[i], ][chull(df[df$Location ==
L[i], c("Axis.1", "Axis.2")]), ]
S<-rbind(NULL,S)}
I would like to make a convex hull connecting all outermost points for a single
Location
as well as fill byLocation
. Here is what I have so far:I have tried a method by joey711 in an earlier post, but this produces random jagged looking shapes instead of a clean polygon. So close!
bray_plot + geom_polygon(aes(fill=Location, alpha = 0.2))
I have also tried using the
chull
function but am having issues with this. Maybe someone can see where I am going wrong. I am not sure where to use the phyloseq object vs the ordination in this code or whether I need something else entirely since neither are dataframes.Thanks for your help!