textvenn | R Documentation |
Text Venn diagram
textvenn(
setlist,
sets = seq_along(setlist),
overlap_type = c("concordance", "overlap", "each", "agreement"),
set_colors = NULL,
spacing = 5,
padding = 1,
inverse_title = TRUE,
inverse_counts = FALSE,
color_by_counts = TRUE,
return_items = TRUE,
unicode = TRUE,
big.mark = ",",
sep = "&",
blend_preset = "ryb",
curate_df = NULL,
verbose = FALSE,
...
)
setlist |
|
sets |
|
set_colors |
|
spacing , padding |
|
inverse_title , inverse_counts |
|
return_items |
|
unicode |
|
big.mark |
|
blend_preset |
|
curate_df |
|
verbose |
|
This function is a very simple method to print a Venn diagram using text, intended to be displayed using mono-spaced font on an R console.
data.frame
returned using invisible()
, from the
output of signed_overlaps()
.
Other venndir core:
render_venndir()
,
signed_overlaps()
,
venn_meme()
,
venndir()
setlist <- make_venn_test(n_items=100, do_signed=TRUE)
# two-way Venn by default shows concordance
textvenn(setlist, sets=c(1,2))
# without signed directionality use overlap_type="overlap"
textvenn(setlist, sets=c(1,2), overlap_type="overlap")
# three-way Venn showing each signed directionality
textvenn(setlist, sets=c(1,2,3), overlap_type="each")
# larger number of items
setlist <- make_venn_test(n_items=1000000, sizes=200000, do_signed=TRUE)
# text Venn with directionality
textvenn(setlist, sets=c(1,2,3), "agreement")
# basic text Venn with directionality
textvenn(setlist, sets=c(1,2,3), "each")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.