Description Usage Arguments Details Value Examples
View source: R/plot_ordiplot_core.R
This function will plot the ordaination alsong with highligthing the core microbes on the species ordination.
1 2 | plot_ordiplot_core(x, ordiObject, coreplot = c(TRUE, FALSE), prevalences,
detections, color.opt, shape)
|
x |
|
ordiObject |
Output of ordinate from package phyloseq. Only NMDS and Bray supported. |
coreplot |
TRUE or FALSE for core heatmap from microbiome package. |
prevalences |
Prevalences as supported by microbiome package. |
detections |
Detections as supported by microbiome package. |
color.opt |
Variable of interest from metadata. |
shape |
Variable of interest from metadata. |
Most commonly it is observed that the taxonomy file has classification until a given
taxonomic level.
Hence, to avoid loss of OTU information while using the function tax_glom() for merging at a specific taxonomic level.
we will fill the empty cells with the maximum classification available along with the
OTU number. This code is a slight modification.
the code from ampvis phyloseq-class
. Here, we directly take the
phyloseq object as input and make the necessary formatting.
plot
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Example data
library(microbiome)
library(microbiomeUtilities)
library(RColorBrewer)
data("biogeogut")
p0 <- biogeogut
ps1 <- format_phyloseq(ps0)
px <- plot_ordiplot_core(ps1, ordiObject = ordi, coreplot = TRUE,
prevalences = prev.thres,
detections = det.thres, color.opt = "SampleType", shape = NULL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.