View source: R/beta_div_test.R
graph_test_pq | R Documentation |
A wrapper of phyloseqGraphTest::graph_perm_test()
for quick plot with
important statistics
graph_test_pq(
physeq,
fact,
merge_sample_by = NULL,
nperm = 999,
return_plot = TRUE,
title = "Graph Test",
na_remove = FALSE,
...
)
physeq |
(required): a |
fact |
(required) Name of the factor to cluster samples by modalities.
Need to be in |
merge_sample_by |
a vector to determine
which samples to merge using |
nperm |
(int) The number of permutations to perform. |
return_plot |
(logical) Do we return only the result of the test, or do we plot the result? |
title |
The title of the Graph. |
na_remove |
(logical, default FALSE) If set to TRUE, remove samples with NA in the variables set in formula. |
... |
Other params for be passed on to
|
This function is mainly a wrapper of the work of others.
Please cite phyloseqGraphTest
package.
A ggplot
2 plot with a subtitle indicating the pvalue
and the number of permutations
Adrien Taudière
if (requireNamespace("phyloseqGraphTest")) {
data(enterotype)
graph_test_pq(enterotype, fact = "SeqTech")
graph_test_pq(enterotype, fact = "Enterotype", na_remove = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.