Skip to contents

This function creates Venn diagram, showing counts of metabolites having ratios of missing values larger than the given threshold for each group level. Function works only when group has up to 5 levels.

Usage

create_venn_diagram(dat, threshold)

Arguments

dat

a raw_data object, the output of read_data(), with group specified using the add_group() function.

threshold

a minimum ratio of metabolite missing values in one group level for metabolite to be included in the diagram, given as decimal.

Examples

path <- get_example_data("small_biocrates_example.xls")
dat <- read_data(path)
dat <- add_group(dat, "group")
create_venn_diagram(dat, 0.1)
#> Warning: Although not display in plot, outside elements are still count in percentages.
#> Scale for fill is already present.
#> Adding another scale for fill, which will replace the existing scale.