View source: R/plot_functions.R
| venn_pq | R Documentation | 
phyloseq-class objectGraphical representation of distribution of taxa across combined modality of a factor.
venn_pq(physeq, fact, min_nb_seq = 0, print_values = TRUE)
| 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). | 
A ggplot2 plot representing Venn diagram of
modalities of the argument factor
Adrien Taudière
venneuler
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()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.