make_venn_combn_df: Make full Venn combination data.frame

make_venn_combn_dfR Documentation

Make full Venn combination data.frame

Description

Make full Venn combination data.frame

Usage

make_venn_combn_df(x, include_zero = FALSE, sep = "&", ...)

Arguments

x

either character vector of set names, or integer number of sets.

include_zero

logical indicating whether to include one row with all zeros, in the event of counting factors where some factor levels may not be present in any sets.

sep

character separator used when combining set names into a single label.

...

additional arguments are ignored.

Details

This function returns a data.frame with all possible combinations of set overlaps for the number of sets provided.

Value

data.frame where rownames indicate each possible Venn overlap, colnames indicate each set name, and values are 0 or 1 indicating whether each set should have a value in each row.

See Also

Other venndir utility: curate_venn_labels(), expand_range(), get_venn_shapes(), gridtext_make_outer_box(), gridtext_richtext_grob(), make_color_contrast(), make_venn_test(), match_list(), nudge_venndir_label(), print_color_df(), shrink_df(), three_point_angle(), venndir_label_style(), venndir_legender(), venndir_to_df()

Examples

make_venn_combn_df(3);
make_venn_combn_df(3, include_zero=TRUE);

make_venn_combn_df(letters[1:3]);


jmw86069/venndir documentation built on June 15, 2024, 1:52 p.m.