Description Usage Arguments Value
This function takes a phyloseq object with otu_table, sam_data and tax_table slots and compute the relative abundances for the features in a specified taxonomical rank. If a repeated measures/time variable and a treatment/condition variables are specified it performs test for the specified taxa. The graphical representation can be of two types: by the repeated measures/time variable or by the treatment/condition variable. Non parametric Mann-Whitney or Wilcox test are performed to study differences in the relative abundances.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
ps |
A phyloseq object. |
rank |
The taxonomical rank, found in the tax_table columns, for taxa agglomeration. |
time_variable |
Name of the column, in sample_data slot of the phyloseq object, where repeated measures/time variable is stored. |
treatment_variable |
Name of the column, in sample_data slot of the phyloseq object, where treatment/condition variable is stored. |
sample_variable |
Name of the column, in sample_data slot of the phyloseq object, where sample names variable is stored. |
taxa_to_test |
A vector of character containings taxonomical group names of interest. If |
test_by |
|
strat_by |
Name of the column, in sample_data slot of the phyloseq object, for the stratification variable. Default set to |
comparisons_list |
A list of length-2 vectors. The entries in the vector are either the names of 2 values on the x-axis or the 2 integers that correspond to the index of the groups of interest, to be compared. If empty and |
show_test |
If TRUE, significant p-values or adjusted p-values are shown. |
adj |
If TRUE (default = FALSE) and |
y_position |
If specified (default = NULL) set the y-axis position of the tests. |
a list with two slots: plot
which contains a ggplot
object with taxa_to_test faceted rows and repeated measures/time or condition/treatment levels as faceted columns. And data
slot, which contains the summary mean and sd for relative abundances.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.