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(), make_color_contrast(), make_venn_test(), match_list(), nudge_venndir_label(), print_color_df(), shrink_df(), three_point_angle(), 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 Nov. 14, 2024, 10:12 a.m.