venn_pq {MiscMetabar} | R Documentation |
Venn diagram of phyloseq-class
object
Description
Usage
venn_pq(physeq, fact, min_nb_seq = 0, print_values = TRUE)
Arguments
physeq |
(required): a |
fact |
(required): Name of the factor to cluster samples by modalities.
Need to be in |
min_nb_seq |
(default: 0)): minimum number of sequences by OTUs by samples to take into count this OTUs in this sample. For example, if min_nb_seq=2,each value of 2 or less in the OTU table will be change into 0 for the analysis |
print_values |
(logical) Print (or not) the table of number of OTUs for each combination. If print_values is TRUE the object is not a ggplot object. Please use print_values = FALSE if you want to add ggplot function (cf example). |
Value
A ggplot
2 plot representing Venn diagram of
modalities of the argument factor
Author(s)
Adrien Taudière
See Also
Examples
if (requireNamespace("venneuler")) {
data("enterotype")
venn_pq(enterotype, fact = "SeqTech")
}
if (requireNamespace("venneuler")) {
venn_pq(enterotype, fact = "ClinicalStatus")
venn_pq(enterotype, fact = "Nationality", print_values = FALSE)
venn_pq(enterotype, fact = "ClinicalStatus", print_values = FALSE) +
scale_fill_hue()
venn_pq(enterotype, fact = "ClinicalStatus", print_values = FALSE) +
scale_fill_hue()
}
[Package MiscMetabar version 0.9.1 Index]