Plot a Venn diagrams for up to 5 sets

venn(data, universe=NA, small=0.7, showSetLogicLabel=FALSE,
     simplify=FALSE, show.plot=TRUE, intersections=TRUE, names,
     ...)

# S3 method for class 'venn'
plot(x, y, ..., small=0.7, showSetLogicLabel=FALSE,
     simplify=FALSE)

Arguments

data,x

Either a list list containing vectors of names or indices of group intersections, or a data frame containing boolean indicators of group intersectionship (see below)

universe

Subset of valid name/index elements. Values ignore values in data not in this list will be ignored. Use NA to use all elements of data (the default).

small

Character scaling of the smallest group counts

showSetLogicLabel

Logical flag indicating whether the internal group label should be displayed

simplify

Logical flag indicating whether unobserved groups should be omitted.

show.plot

Logical flag indicating whether the plot should be displayed. If false, simply returns the group count matrix.

intersections

Logical flag indicating if the returned object should have the attribute "individuals.in.intersections" featuring for every set a list of individuals that are assigned to it.

y

Ignored

...

Optional graphical parameters.

names

Optional vector of group names.

Details

data should be either a named list of vectors containing character string names ("GeneAABBB", "GeneBBBCY", .., "GeneXXZZ") or indexes of group intersections (1, 2, .., N), or a data frame containing indicator variables (TRUE, FALSE, TRUE, ..) for group intersectionship. Group names will be taken from the component list element or column names.

Value

Invisibly returns an object of class "venn", containing:

  • A matrix of all possible sets of groups, and the observed count of items belonging to each The fist column contains observed counts, subsequent columns contain 0-1 indicators of group intersectionship.

  • If intersections=TRUE, the attribute intersections will be a list of vectors containing the names of the elements belonging to each subset.

Author

Steffen Moeller, with cleanup and packaging by Gregory R. Warnes.

Examples


##
## Example using a list of item names belonging to the
## specified group.
##

## construct some fake gene names..
oneName <- function() paste(sample(LETTERS,5,replace=TRUE),collapse="")
geneNames <- replicate(1000, oneName())

##
GroupA <- sample(geneNames, 400, replace=FALSE)
GroupB <- sample(geneNames, 750, replace=FALSE)
GroupC <- sample(geneNames, 250, replace=FALSE)
GroupD <- sample(geneNames, 300, replace=FALSE)
input  <-list(GroupA,GroupB,GroupC,GroupD)
input
#> [[1]]
#>   [1] "YMIII" "TGRSB" "EDQGT" "PJDAK" "JSWWK" "UYLOB" "YERZG" "RIOLM" "DLXKU"
#>  [10] "VTDFY" "RMAEP" "VBTNM" "SHIPQ" "VXQWD" "JQKSZ" "JJKNI" "QPMWC" "QQAJB"
#>  [19] "XTRKL" "EEGGG" "FSGGO" "UHDMH" "QGTDI" "AXDMY" "UCCWI" "FFNWH" "XNMLQ"
#>  [28] "GZQZM" "JBXRU" "QBCLV" "EDSRI" "FSFWT" "VQLTJ" "HPMVK" "EXHLU" "IJJRE"
#>  [37] "PEQCJ" "CTXQJ" "UEWSV" "ATLMY" "WKUPX" "CPFTV" "FQPYR" "RILGB" "DKHEL"
#>  [46] "JCIDI" "SBIEA" "MMQSM" "FHWLJ" "VYNOG" "YMCMZ" "RLPYL" "BLBGS" "QIVKH"
#>  [55] "IKKZA" "WNCBJ" "GTHER" "RXWMV" "OGBDE" "AHDRZ" "CMTPQ" "ADVQM" "LAPDM"
#>  [64] "ZFQSC" "ZFSGS" "NTSKM" "XEIML" "NLCGE" "NRKXT" "FRWGN" "EDVLI" "OHKPP"
#>  [73] "DEJXH" "CAEPI" "NUGIR" "CTQAH" "THFVD" "YGHYR" "NJTFO" "ELGUI" "VKNMJ"
#>  [82] "QCQYM" "NJAAF" "MGYFU" "SSQMS" "ZLSYT" "XFRMN" "CQFRD" "OGJBW" "NOVTT"
#>  [91] "VALVS" "VEUTP" "BPYQN" "DTUNJ" "MYOHQ" "YTLNJ" "IMKMQ" "ZZEFR" "LSGRC"
#> [100] "ILCPG" "XLRET" "TQGJB" "OPZDH" "XEUKR" "QLIDJ" "DEJHX" "SMXKI" "LPUDQ"
#> [109] "JTHVY" "IITIH" "VTTWS" "DZESC" "XRWLY" "EETXA" "TILQM" "DEVMB" "MILSE"
#> [118] "JGOFD" "LKPNQ" "GNADE" "VLYNP" "AZZNR" "BQPMG" "GBZRN" "WSWRG" "ZZNBK"
#> [127] "MSOYN" "REHJC" "FLVAN" "BOEWQ" "REPUE" "ZYNUB" "CAFSA" "PNFVW" "YZEGX"
#> [136] "VFMUP" "OBEEH" "GVSWW" "QBATS" "FJIDR" "NQFKN" "XBHHA" "ZULKL" "SLTBK"
#> [145] "UGEQR" "XLAZZ" "HVVJY" "EXADT" "YXLER" "RGKIA" "RWCFT" "KJQIL" "TDKDI"
#> [154] "HUYMF" "NDLWN" "QUIYZ" "RWQRC" "VRCUY" "WVEAX" "LOXNJ" "KFQEN" "KWSVW"
#> [163] "SWCZP" "BLQZQ" "NDIUI" "GFJIZ" "PKSFY" "GJMOI" "HXKMK" "AHKEN" "VKIZK"
#> [172] "DWCPR" "SAJSX" "LDVDJ" "OYLFM" "TWLSW" "HWLNL" "PMRKN" "UUABD" "LGEZW"
#> [181] "WMDQQ" "TRVNP" "NDRUX" "XJMPD" "NNHTV" "CQIMT" "EBETB" "NSKHG" "TUFEN"
#> [190] "HBCKT" "CQCXI" "MSBLF" "AKDQI" "MTFZZ" "KLUNS" "ZUUYV" "FPCEU" "FTQQY"
#> [199] "IIMDF" "PUFUS" "RUQLK" "GSSQG" "KIUTG" "SECSL" "NTEPI" "AVBXA" "ARPIW"
#> [208] "NFRZT" "ZLXCO" "AWAOB" "CFUVR" "SIMFZ" "FHNTU" "PRTPE" "ENYGM" "YBBNB"
#> [217] "XKVWP" "IIXXE" "VSVKU" "GCCNI" "DQAQJ" "CHHZV" "ZFZFA" "TIHWF" "FBVKW"
#> [226] "XGTPM" "LMZAH" "CAQVR" "LUYHW" "HFGFP" "DCKWJ" "UPMLR" "RGCQE" "QURGV"
#> [235] "OKSVU" "RFYGE" "BBMST" "NHOZP" "QDPNF" "NQCQW" "KPZES" "WYGZV" "TQZGP"
#> [244] "TKAEU" "XSCCN" "RGUOJ" "FSQSO" "NFSGU" "PIBAW" "VVNNS" "NQKHR" "CAWDQ"
#> [253] "BUWLA" "MUYCQ" "TVYYJ" "YYBEN" "CYXUZ" "ZVMPS" "GLOQV" "TXMHX" "MELKZ"
#> [262] "TVUKT" "ABUCB" "DVSVN" "YSRVC" "AQWMD" "ACHTF" "OEFPV" "YAVVE" "ASMJV"
#> [271] "TFSET" "JETOX" "FTIPT" "BOAWV" "XIOEJ" "GWWLE" "JBVGX" "BDLQC" "HWFUN"
#> [280] "QHANP" "LSJDC" "VBSCC" "ABEMT" "UGDLC" "XQCFD" "TPUBB" "AECDH" "TOFMJ"
#> [289] "QZHIM" "UGTLY" "YZJRC" "MJIEP" "CDHIU" "RHCYI" "QQIXI" "NSRJR" "OKOFY"
#> [298] "JMLIJ" "DIUCE" "SQZXR" "WBFWJ" "ZCEQT" "FQTJD" "PKMTY" "REGHA" "TSZEW"
#> [307] "CNIGR" "HWFMB" "IQLDM" "QGZJS" "RLCTQ" "CASZE" "EEKPP" "NDVLC" "BPQZG"
#> [316] "KAPCQ" "PESCC" "IKZUW" "ZGZGI" "VOJBR" "ZWTTH" "PSIUX" "RKQRB" "XUOUB"
#> [325] "JUOBX" "DUKGW" "WAICA" "XODZH" "KMQCB" "BUSUE" "KNMST" "FWEPE" "MTLXT"
#> [334] "NTTIS" "LTWFM" "EFGQT" "CNWHB" "NXDPR" "DBENV" "NNQKY" "LIDPN" "CVRZH"
#> [343] "PHGRU" "YLKRA" "TCUQK" "JDTNH" "JPMVL" "RTOTK" "UURZW" "IDUGD" "TMRSS"
#> [352] "PCSXL" "XMLCQ" "VFDLE" "LKHAF" "CTTEQ" "BHZPH" "PEGKE" "EWTBX" "OINFR"
#> [361] "KYRJQ" "LBLJX" "SGPJB" "UPYMG" "YKRMH" "VEWNH" "DPURT" "QBOOQ" "SRVEG"
#> [370] "PHWGC" "PURYK" "UKZTO" "JFXKH" "BSOVT" "GHFFA" "VKYIE" "GGCEX" "XTDCZ"
#> [379] "MRIGY" "XEFBQ" "TCCXT" "ELCJJ" "MKQSV" "BUMEC" "ULCKN" "LFYLT" "LZQQQ"
#> [388] "OOFAL" "IRBGU" "LODJK" "JYTWP" "RBMMS" "GFYZG" "KWBFR" "XLHWL" "KJXHG"
#> [397] "IMGXL" "XDIPD" "RVXBP" "MGPFN"
#> 
#> [[2]]
#>   [1] "FXVQY" "QBOOQ" "AORUB" "PPYOH" "JIFKL" "SUHYR" "VSVKU" "HIAQL" "UPYMG"
#>  [10] "OFCZV" "KYRJQ" "VOJBR" "CZQBG" "RVVZD" "VLFGJ" "XMVVN" "OIEYP" "TRJRB"
#>  [19] "PJDAK" "CAWDQ" "UGTLY" "XTDCZ" "GWGPA" "WFMVD" "EUCTP" "ZULKL" "MBZRN"
#>  [28] "EKUYW" "BNPBF" "QOHIZ" "QZHIM" "VBSCC" "LDVDJ" "QGNEQ" "JMLGP" "GJMOI"
#>  [37] "XCNMA" "UXDGX" "DWCPR" "OKKFP" "GLOQV" "PXEPS" "TNEZM" "WOUJH" "ABUCB"
#>  [46] "RSAVL" "EIEMM" "ASQJQ" "CYSVI" "AFHPT" "LGMZK" "EAHUB" "JJKNI" "IIMDF"
#>  [55] "KFRHL" "OUAVE" "TXMHX" "MMQSM" "GVOQL" "NTTAV" "NZADX" "PKNFK" "TIHWF"
#>  [64] "MSBLF" "JZQCZ" "LYYBV" "KLUNS" "OGJBW" "CVRZH" "YMIII" "KJHEO" "DZESC"
#>  [73] "XZGEN" "QAGKJ" "ZBDZX" "NQCQW" "GFJIZ" "FEOJA" "CQCXI" "BRHKR" "PSZIE"
#>  [82] "LZNOY" "PAYBP" "DJLHU" "DATCW" "IKKZA" "CVHIX" "FUGRT" "JJVZS" "UPSEF"
#>  [91] "OBLUC" "GNADE" "GQOWT" "SZOUJ" "THFVD" "TVXFM" "FCQYQ" "VNWVW" "MSOYN"
#> [100] "UOFIO" "ONATZ" "OCWEK" "RFYJH" "VXQWD" "CXUZH" "ZFZFA" "DRXHH" "YZCRQ"
#> [109] "ANXQH" "TOFMJ" "BXCSG" "HOGTN" "TILQM" "PJCDV" "FIWCF" "ECCFP" "SCPLR"
#> [118] "KRZUH" "LNNKZ" "XCCXU" "BPQZG" "XUOUB" "VXXYJ" "YYGCY" "AHJEA" "CILHD"
#> [127] "WJOEZ" "XEUKR" "MGYFU" "FPCEU" "GVSWW" "HMWMO" "ZBUCK" "KTPUX" "JJNZB"
#> [136] "MANBN" "SABYO" "SPAIS" "QCDQO" "RMAEP" "REPUE" "BZQPN" "EUMIW" "ZHWZB"
#> [145] "DVSVN" "YBYXE" "BADKD" "JRDPA" "NNITQ" "AWAOB" "JDTNH" "YXVYY" "HTDIJ"
#> [154] "BUMEC" "WVEAX" "YSRVC" "GBZRN" "ZNPHZ" "MSIJK" "GGQQF" "VMYYC" "QCQYM"
#> [163] "RQLER" "QDPNF" "JMLIJ" "EANKE" "OKAUH" "JQKSZ" "EXADT" "NUGIR" "RGUOJ"
#> [172] "PUFUS" "SOFSM" "REHJC" "EDQGT" "XTSPI" "BUSUE" "YJYTM" "NYTZB" "PULJB"
#> [181] "PQXCE" "EBETB" "DUCUP" "RWQRC" "WPODU" "CNWHB" "OEFPV" "ATLMY" "HZHRE"
#> [190] "JSWWK" "OHSIB" "KWBFR" "ZLSYT" "NFRZT" "WTIWO" "VPHBR" "VKNMJ" "AKDQI"
#> [199] "HBRBU" "FFNWH" "WDKJP" "MWIDH" "PKMTY" "MJIEP" "XEFBQ" "RWCFT" "CENDF"
#> [208] "IHTJY" "XPIMA" "TVUKT" "SGAGM" "MGPFN" "IIXXE" "VQGRC" "IMGSX" "NXDPR"
#> [217] "CTQAH" "LLOEP" "MANTZ" "OAOBG" "NVZMU" "YQMJC" "WGKSP" "JYGAI" "SSJDC"
#> [226] "BJDFG" "NQLUG" "ACHTF" "YAVVE" "XODZH" "KGXCA" "FSQSO" "LRNQE" "WJCFD"
#> [235] "MKLKL" "QZQKF" "QGYBK" "AQRRA" "TCUQK" "XJMPD" "KFQEN" "VWKZJ" "UZBWI"
#> [244] "VBTNM" "JFXKH" "OOEXB" "KIUTG" "UGEQR" "BMNHB" "THMEW" "VQHER" "JOEHG"
#> [253] "CQFRD" "SRVEG" "KRPAE" "XLAZZ" "LOUTU" "MWPJJ" "SMWSN" "YMTXG" "JPMVL"
#> [262] "RYSSB" "DEJHX" "LIDPN" "NOGVM" "UJYGF" "EHOZF" "MDPSX" "ZTOBO" "BLQZQ"
#> [271] "LKHAF" "CNIGR" "FSFWT" "XCXTQ" "LQODV" "HBCKT" "ANMYA" "QVOSJ" "TGRSB"
#> [280] "VXBYG" "ZKXTG" "YYBEN" "QHHJL" "LBLJX" "NMRUD" "QGVPU" "PNFVW" "MKUQK"
#> [289] "KGMIP" "PCCRX" "QYSXT" "EFNIB" "HIXMT" "TQZGP" "TDKDI" "QGTDI" "HPMVK"
#> [298] "XMLCQ" "QGZJS" "OQWRF" "QUIYZ" "TCCXT" "YMGRW" "VFMUP" "BEXON" "KQCNM"
#> [307] "PMJTE" "PEGKE" "XQCFD" "CHHZV" "HLWPY" "GAXSN" "MUPOH" "LKPNQ" "HSNVF"
#> [316] "ECBUW" "YERZG" "JZWJF" "BAZUG" "ZUIHY" "XBHHA" "YMCMZ" "GCXHG" "SLPUT"
#> [325] "TPUBB" "FTIPT" "JBVGX" "OPZDH" "NLCGE" "SECSL" "OINFR" "LFENA" "JJHYS"
#> [334] "AXYCM" "OQATO" "QBATS" "OUSUY" "ZTSKQ" "UXGHW" "XEIML" "EETXA" "NFSGU"
#> [343] "RFYGE" "CMTPQ" "PURYK" "AXDMY" "LUIBK" "NBFXV" "FBVKW" "FJIDR" "FQPYR"
#> [352] "SFJFI" "MIVAL" "PJYUF" "WAZFP" "NNUXG" "ITROK" "FLVAN" "NWOKR" "BLVKE"
#> [361] "EEGGG" "LGEZW" "AHKEN" "NJTFO" "HISPZ" "YHLDV" "DBENV" "WYFRA" "YLIGE"
#> [370] "RLPYL" "IJZMQ" "TUFEN" "SOZOK" "QLIDJ" "CCGTT" "GFYPZ" "HNXOK" "YZJRC"
#> [379] "MTFZZ" "BUWLA" "RYSVI" "SNAKS" "OHSRN" "DCKWJ" "DQAQJ" "CVNNM" "DEJXH"
#> [388] "RJZID" "KGLHU" "XTWSG" "UCNJQ" "IROWO" "FQSSV" "KBSMW" "CFZHA" "MFGMD"
#> [397] "PRTPE" "VEWNH" "NSRJR" "VBDEY" "RHCYI" "FPARL" "CDHIU" "TSZEW" "AQWMD"
#> [406] "ZGZGI" "EDOEK" "OQNBT" "SKSDX" "OEDTK" "UFFAA" "IMKMQ" "NDLWN" "GSPOT"
#> [415] "EAIPH" "UIRPS" "IJJRE" "YNNWY" "IMGXL" "LCVOU" "HTUQZ" "QMALB" "ABEMT"
#> [424] "GUBHT" "SJIFG" "KUXDB" "MRTRS" "BUWVX" "VJNKZ" "GMEIS" "MUYCQ" "PCSXL"
#> [433] "FUVPX" "NGMXH" "RVJXU" "XLHWL" "TACJD" "FIIDX" "MLZPB" "LEXUS" "JHKBA"
#> [442] "LPUDQ" "KNDMB" "KZEMN" "AEBKV" "XNMLQ" "KPZES" "DKHEL" "JZPQG" "ZWTTH"
#> [451] "TEBUJ" "VLQGX" "SBIEA" "GWWLE" "PKSFY" "QQHLH" "IEICM" "KPKPJ" "WSWRG"
#> [460] "XCBJB" "CDCLI" "NOVTT" "ZVNSS" "YGHYR" "ZFSGS" "MYOHQ" "MVTRS" "IVJSO"
#> [469] "LAPDM" "LIQPH" "XRWLY" "GHFFA" "YQPFK" "IOILU" "NDUFF" "JIYDO" "VZQXC"
#> [478] "IMMMW" "KIYIF" "ULCKN" "CGJJW" "RBWDD" "UIBXS" "KWSVW" "RBMMS" "KNMST"
#> [487] "CJJQS" "KUEEF" "VMWNN" "IXPVR" "SIWMJ" "KMQCB" "EOVJH" "BDLQC" "QANBM"
#> [496] "KIEEG" "EDSRI" "BXGZG" "GCCNI" "LZQQQ" "HUMNR" "GDURJ" "SMXHI" "FWEPE"
#> [505] "AZGKM" "ZPSNG" "ASCTA" "CGVUY" "DMCLQ" "UUABD" "RUQLK" "HVVJY" "YXLER"
#> [514] "ARPIW" "QURGV" "AMQCT" "REGHA" "TDAXO" "CFOLW" "ICUDD" "QYVHD" "DEXEN"
#> [523] "CENUC" "JBXRU" "DNMCP" "EXHLU" "HUBNU" "LMADF" "HPQIZ" "OLWSK" "VLYNP"
#> [532] "JMHVY" "SQZXR" "OKOFY" "JGLPO" "PEQCJ" "ZZOJE" "EDVLI" "ZLXCO" "HGXHF"
#> [541] "CWFIT" "ZDUNX" "FTQQY" "QVIER" "RHYGO" "DQBSD" "APIJB" "PSIUX" "BLBGS"
#> [550] "XIMOT" "IXWHA" "FVAJV" "NNOFC" "JNQTO" "ZFQSC" "FKAKN" "PPAJR" "XJFSQ"
#> [559] "WMDQQ" "LDXKS" "GMKRS" "XTRKL" "VFDLE" "ANCSV" "GYTQE" "HWFMB" "FSGGO"
#> [568] "ALAAW" "CFAOO" "ILMMA" "QHANP" "WCWCY" "SMXKI" "BSOVT" "XBTRL" "CAFSA"
#> [577] "TUMDX" "ESLXC" "ASMJV" "BNRNI" "PHGRU" "ELCJJ" "LOXNJ" "VRCUY" "JKXOQ"
#> [586] "KONHI" "UDDQN" "JFDES" "QSVYN" "VALVS" "DNWAO" "OSIWO" "LPADU" "AHDRZ"
#> [595] "YVESI" "OYXBM" "MRIGY" "FCZKS" "YZEGX" "BQPMG" "IMBEO" "YCLDK" "DTUNJ"
#> [604] "KQNCX" "XZYXY" "FGMSY" "CTXQJ" "KPDFM" "MKQSV" "XSCCN" "XGTPM" "BBMST"
#> [613] "TRVNP" "VQLTJ" "TMRSS" "FEHPV" "OBEEH" "FKKXU" "UYLOB" "NFIJG" "SIMFZ"
#> [622] "JWCVN" "MXKFQ" "FRWGN" "OWIGJ" "RTAQC" "JTHVY" "PBJUZ" "AVAOC" "ZUEHW"
#> [631] "DPOFW" "NJAAF" "RVXBP" "MELKZ" "IITIH" "RSBES" "LTWFM" "ANDWR" "NTEPI"
#> [640] "KJXHG" "VKYIE" "TBRWY" "GJGPD" "URFHN" "PKVNI" "CAEPI" "OMYAP" "QPMWC"
#> [649] "PIBAW" "ILCPG" "EDAJP" "QHZTH" "BMPAP" "WYGZV" "ZWAXW" "XGAIE" "XXEWB"
#> [658] "HKDQR" "PIEKJ" "VKIZK" "ZTZQN" "KZXDT" "YBBNB" "OGBDE" "FHNTU" "GVFRN"
#> [667] "BWBHM" "XHHGN" "PSENI" "SWCZP" "EZWMZ" "BPYQN" "NWAPA" "UUEZG" "SEPHM"
#> [676] "EZFPW" "ZCALK" "PSTDQ" "EVZVY" "TWLSW" "NOTTT" "DVYQK" "CASZE" "MHAST"
#> [685] "OOFAL" "XKVWP" "VTTWS" "TCZFY" "ZYNUB" "WFPZM" "AECDH" "IVSAF" "NDVLC"
#> [694] "PESCC" "FBYWQ" "RIGEM" "NNPXR" "GMLSK" "NTTIS" "ZCEQT" "VTDFY" "NAAGM"
#> [703] "MTLXT" "PXWLG" "QNFRJ" "XFXPW" "GDOEG" "TZADP" "HTMMA" "RKVBZ" "KJQIL"
#> [712] "TWYWO" "TKPGE" "UTTHI" "ILKLS" "SHIPQ" "KMLIB" "VEUTP" "BBPBK" "NFLQC"
#> [721] "JUOBX" "SSYEZ" "SLTBK" "FXUOM" "BKIAJ" "CYXUZ" "HFGFP" "HXLQP" "NQFKN"
#> [730] "YUFBP" "XCMJL" "MVAZY" "DIUCE" "DRRFY" "XVSXL" "OLPXP" "JYTWP" "GFYZG"
#> [739] "CPGNC" "LAGHX" "IQLDM" "NICDN" "NHMPB" "BOEOS" "VRZAV" "ZKMWK" "VYNOG"
#> [748] "RERWZ" "AHPXC" "JDLBE"
#> 
#> [[3]]
#>   [1] "NWAPA" "YZCRQ" "XANPQ" "RLGIV" "SJIFG" "UHDMH" "NDIUI" "HUYMF" "PPAJR"
#>  [10] "PJDAK" "UGTLY" "VRZAV" "VEHVJ" "KRZUH" "WFOEH" "JJVZS" "DGXDI" "UTTHI"
#>  [19] "XXLXR" "PIEKJ" "OMFNZ" "XTWSG" "ZZEFR" "WJOEZ" "WMDQQ" "LVPBM" "SABYO"
#>  [28] "LMZAH" "QANBM" "FQTJD" "PTPEB" "MSOYN" "VMNMC" "CQFRD" "KWBFR" "UIBXS"
#>  [37] "MVAZY" "TOPBW" "CAWDQ" "EFYUO" "FTQQY" "HCOKT" "EHOZF" "EESZJ" "MRIGY"
#>  [46] "VALVS" "DCKWJ" "CWFIT" "QVOSJ" "NDFRZ" "JZQCZ" "KPDFM" "AZZNR" "SFJFI"
#>  [55] "MVTRS" "CTXQJ" "BQPMG" "OWIGJ" "CVNNM" "YXVYY" "DEJHX" "XCNMA" "TKSPP"
#>  [64] "SLPUT" "NNPXR" "QYSXT" "XIMOT" "XNMLQ" "FUGRT" "NICDN" "LIQPH" "ZHWZB"
#>  [73] "KNMST" "ASMJV" "TDAXO" "OLWSK" "NFRZT" "PHWGC" "ABUCB" "HFGFP" "RLCTQ"
#>  [82] "WSADN" "XFISS" "AVAOC" "DZQHW" "LDXKS" "JPMVL" "PQXCE" "LRNQE" "NLCGE"
#>  [91] "KIUTG" "SAJSX" "QSVYN" "PSTDQ" "NBFXV" "ZKXTG" "GFYPZ" "GTHER" "TQZGP"
#> [100] "RWQRC" "TILQM" "MRTRS" "RGUOJ" "YZJRC" "URFHN" "TBRWY" "MWIDH" "SSYEZ"
#> [109] "HNXOK" "AECDH" "DQAQJ" "BCSJF" "TRVNP" "NNUXG" "OHSIB" "SSJDC" "AHJEA"
#> [118] "BNRNI" "UOFIO" "PKMTY" "SIWMJ" "ITROK" "VJNKZ" "BXCSG" "HMWMO" "XMLCQ"
#> [127] "YCLDK" "PMRKN" "OQWPE" "JGOFD" "JRDPA" "RGCQE" "XJFSQ" "THFVD" "ZLSYT"
#> [136] "MTLXT" "VTDFY" "FLVAN" "VLFGJ" "OEDTK" "GLOQV" "OIEYP" "QUIYZ" "JTHVY"
#> [145] "FKSKP" "OKSVU" "RVVZD" "WNKAY" "DTUNJ" "YGFLL" "SHIPQ" "MUASG" "KONHI"
#> [154] "MUPOH" "BNPBF" "LRYYN" "METQI" "EVQLX" "FKKXU" "YYBEN" "KRPAE" "NAAGM"
#> [163] "QZHIM" "NHHGE" "EIEMM" "RHYGO" "ZUEHW" "RZRBQ" "DQBSD" "TXMHX" "VRCUY"
#> [172] "WMSKJ" "XBTRL" "VSVKU" "RKVBZ" "YMTXG" "ZLXCO" "XFXPW" "GBZRN" "JOEHG"
#> [181] "QHZTH" "XFRMN" "LPADU" "QAGKJ" "JJHYS" "LOXNJ" "PXEPS" "IJZMQ" "DSNYH"
#> [190] "NDRUX" "ZFQSC" "YERZG" "OUSUY" "GVFRN" "ZZNBK" "SGPJB" "KUXDB" "SLTBK"
#> [199] "CJJQS" "NKIZL" "LGEZW" "NTTIS" "IMGXL" "PMITG" "OOEXB" "MGYFU" "OQNBT"
#> [208] "BDLQC" "GFHEG" "LMADF" "VBDEY" "KJHEO" "RTOTK" "MXKFQ" "NVZMU" "KUEEF"
#> [217] "UENSU" "OMYAP" "CENUC" "XZYCL" "GJGPD" "DLXKU" "XCMJL" "GHFFA" "HTDIJ"
#> [226] "CAEPI" "NWEMI" "CPGNC" "IIMDF" "MTFZZ" "LAPDM" "TNEZM" "XLRET" "ZUVZX"
#> [235] "CHHZV" "LLOEP" "QCQYM" "LAGHX" "EUUJG" "LSJDC" "RHCYI" "TWLSW" "IMBEO"
#> [244] "JKXOQ" "EDOEK" "CQDWL" "PEGKE" "CXUZH" "WNCBJ" "RIGEM"
#> 
#> [[4]]
#>   [1] "JXSLX" "REPUE" "QURGV" "SMWSN" "MXKFQ" "CGVUY" "RHCYI" "GBZRN" "GQANJ"
#>  [10] "RBMMS" "TXMHX" "JSKLK" "WAICA" "LRNQE" "THMEW" "RTOTK" "DCKWJ" "ESOTI"
#>  [19] "KMQCB" "LIQPH" "LSJDC" "RVXBP" "ETDVO" "FFNWH" "PIBAW" "JMLGP" "HBRBU"
#>  [28] "FWEPE" "JUOBX" "BXGZG" "MDPSX" "YYGCY" "WUQME" "CENUC" "HQDOE" "HDGRH"
#>  [37] "HSNVF" "NQFJX" "RLCTQ" "NOTTT" "CDCLI" "TILQM" "LAPDM" "PTPEB" "JETOX"
#>  [46] "WOUJH" "TRVNP" "QGZJS" "RGCQE" "AQWMD" "FGLMK" "LKHAF" "VYOJL" "IJWPG"
#>  [55] "CYSVI" "KSNSW" "PXWLG" "XJMPD" "BBPBK" "LZQQQ" "VEHVJ" "IXPVR" "NDVLC"
#>  [64] "NBFXV" "WGCRR" "AZGKM" "XKVWP" "EOLQM" "HTUQZ" "CWFIT" "KTPUX" "SIRFE"
#>  [73] "ENYGM" "XHHGN" "DGXDI" "TDDWL" "BOEOS" "LDVDJ" "QQHLH" "GFJIZ" "FSQSO"
#>  [82] "BOEWQ" "NFRZT" "IRBGU" "KXNJZ" "XVSXL" "TVXFM" "NNOFC" "CAWDQ" "ZWAXW"
#>  [91] "UKZTO" "XFISS" "PAIDF" "GWWLE" "EETXA" "HPQIZ" "QMZNA" "JZPQG" "QHHJL"
#> [100] "RBWDD" "ELGUI" "NTTAV" "WVJGI" "ZKMWK" "QYVHD" "TDKDI" "HMWMO" "PBJUZ"
#> [109] "XVRYM" "PULJB" "CQCXI" "CILHD" "TCZFY" "RLGIV" "ACHTF" "FQPYR" "ZTSKQ"
#> [118] "XIMOT" "OKSVU" "FXVQY" "DWCPR" "YCLDK" "FUBDA" "SJIFG" "KXEAA" "CFOLW"
#> [127] "EANKE" "BRHKR" "HTMMA" "FIWCF" "WFMVD" "QBOOQ" "WLDPP" "PNIYQ" "AHJEA"
#> [136] "KWBFR" "FIIDX" "URFHN" "XGAIE" "LEXUS" "CJJQS" "REGHA" "KJQIL" "OQNBT"
#> [145] "VKIZK" "SAJSX" "VJNKZ" "XBHHA" "LYYBV" "LPADU" "UDRJH" "PMJTE" "OWIGJ"
#> [154] "CHHZV" "WJOEZ" "LFCDH" "HXLQP" "BUWVX" "QNFRJ" "CCSFB" "NBIHL" "VVZZO"
#> [163] "KGLHU" "DQBSD" "NOVTT" "ZFZFA" "VPHBR" "JMHVY" "DJLHU" "AKDQI" "REHJC"
#> [172] "LNWZE" "ZZEFR" "NWEMI" "EBETB" "ADVQM" "SQZXR" "KBSMW" "LFENA" "QQAJB"
#> [181] "BXCSG" "VKYIE" "ZBDZX" "FEHPV" "IJJRE" "WNKAY" "VTTWS" "VXBYG" "ILKLS"
#> [190] "DEVMB" "QCDQO" "SWCZP" "OEDTK" "UENSU" "ANCSV" "MKLKL" "FJIDR" "BKIAJ"
#> [199] "LRYYN" "EZFPW" "UJYGF" "NNPXR" "DUCUP" "TWLSW" "YGNDE" "NFIJG" "BUWLA"
#> [208] "WZXBY" "VBSCC" "HWFMB" "UOFIO" "FXUOM" "ARPIW" "NYTZB" "JWCVN" "VLYNP"
#> [217] "NNQKY" "XZGEN" "FQSSV" "RJZID" "YSRVC" "GTHER" "FKAKN" "BLQZQ" "RWCFT"
#> [226] "IDEXK" "OMFNZ" "GYTQE" "MSOYN" "RYSSB" "ZTZQN" "WFOEH" "XIOEJ" "TOFMJ"
#> [235] "PMITG" "BNPBF" "JPMVL" "RNDVA" "MVTRS" "CAFSA" "PESCC" "OBLUC" "BLBGS"
#> [244] "CFUVR" "TFAFB" "IROWO" "RILGB" "NNITQ" "FKSKP" "RSBQZ" "AECDH" "MTNPQ"
#> [253] "QBCLV" "TCUQK" "RSAVL" "RVJXU" "SHIPQ" "AETJY" "WPODU" "SUHYR" "BJLGH"
#> [262] "UGDLC" "PCSXL" "UUEZG" "CVRZH" "DNMCP" "DUKGW" "LDXKS" "KPDFM" "QQIXI"
#> [271] "ZVNSS" "XMLCQ" "ABEMT" "DPURT" "XTSPI" "BDLQC" "IHTJY" "XLRET" "SSJDC"
#> [280] "TBRWY" "FTIPT" "ICUDD" "TSZEW" "VALVS" "KIUTG" "TCCXT" "OKOFY" "NSRJR"
#> [289] "TUFEN" "CGJJW" "XRTGH" "MILSE" "FEOJA" "PXEPS" "KLUNS" "GMEIS" "SEPHM"
#> [298] "XSCCN" "IMMMW" "HZHRE"
#> 

tmp <- venn(input)
attr(tmp, "intersections")
#> $A
#>  [1] "RIOLM" "UCCWI" "GZQZM" "UEWSV" "WKUPX" "CPFTV" "JCIDI" "FHWLJ" "QIVKH"
#> [10] "RXWMV" "NTSKM" "NRKXT" "OHKPP" "SSQMS" "YTLNJ" "LSGRC" "TQGJB" "RGKIA"
#> [19] "HXKMK" "OYLFM" "HWLNL" "NNHTV" "CQIMT" "NSKHG" "ZUUYV" "GSSQG" "AVBXA"
#> [28] "CAQVR" "LUYHW" "UPMLR" "NHOZP" "TKAEU" "VVNNS" "NQKHR" "TVYYJ" "ZVMPS"
#> [37] "TFSET" "BOAWV" "HWFUN" "WBFWJ" "EEKPP" "KAPCQ" "IKZUW" "RKQRB" "EFGQT"
#> [46] "YLKRA" "UURZW" "IDUGD" "CTTEQ" "BHZPH" "EWTBX" "YKRMH" "GGCEX" "LFYLT"
#> [55] "LODJK" "XDIPD"
#> 
#> $B
#>   [1] "AORUB" "PPYOH" "JIFKL" "HIAQL" "OFCZV" "CZQBG" "XMVVN" "TRJRB" "GWGPA"
#>  [10] "EUCTP" "MBZRN" "EKUYW" "QOHIZ" "QGNEQ" "UXDGX" "OKKFP" "ASQJQ" "AFHPT"
#>  [19] "LGMZK" "EAHUB" "KFRHL" "OUAVE" "GVOQL" "NZADX" "PKNFK" "PSZIE" "LZNOY"
#>  [28] "PAYBP" "DATCW" "CVHIX" "UPSEF" "GQOWT" "SZOUJ" "FCQYQ" "VNWVW" "ONATZ"
#>  [37] "OCWEK" "RFYJH" "DRXHH" "ANXQH" "HOGTN" "PJCDV" "ECCFP" "SCPLR" "LNNKZ"
#>  [46] "XCCXU" "VXXYJ" "ZBUCK" "JJNZB" "MANBN" "SPAIS" "BZQPN" "EUMIW" "YBYXE"
#>  [55] "BADKD" "ZNPHZ" "MSIJK" "GGQQF" "VMYYC" "RQLER" "OKAUH" "SOFSM" "YJYTM"
#>  [64] "WTIWO" "WDKJP" "CENDF" "XPIMA" "SGAGM" "VQGRC" "IMGSX" "MANTZ" "OAOBG"
#>  [73] "YQMJC" "WGKSP" "JYGAI" "BJDFG" "NQLUG" "KGXCA" "WJCFD" "QZQKF" "QGYBK"
#>  [82] "AQRRA" "VWKZJ" "UZBWI" "BMNHB" "VQHER" "LOUTU" "MWPJJ" "NOGVM" "ZTOBO"
#>  [91] "XCXTQ" "LQODV" "ANMYA" "NMRUD" "QGVPU" "MKUQK" "KGMIP" "PCCRX" "EFNIB"
#> [100] "HIXMT" "OQWRF" "YMGRW" "BEXON" "KQCNM" "HLWPY" "GAXSN" "ECBUW" "JZWJF"
#> [109] "BAZUG" "ZUIHY" "GCXHG" "AXYCM" "OQATO" "UXGHW" "LUIBK" "MIVAL" "PJYUF"
#> [118] "WAZFP" "NWOKR" "BLVKE" "HISPZ" "YHLDV" "WYFRA" "YLIGE" "SOZOK" "CCGTT"
#> [127] "RYSVI" "SNAKS" "OHSRN" "UCNJQ" "CFZHA" "MFGMD" "FPARL" "SKSDX" "UFFAA"
#> [136] "GSPOT" "EAIPH" "UIRPS" "YNNWY" "LCVOU" "QMALB" "GUBHT" "FUVPX" "NGMXH"
#> [145] "TACJD" "MLZPB" "JHKBA" "KNDMB" "KZEMN" "AEBKV" "TEBUJ" "VLQGX" "IEICM"
#> [154] "KPKPJ" "XCBJB" "IVJSO" "YQPFK" "IOILU" "NDUFF" "JIYDO" "VZQXC" "KIYIF"
#> [163] "VMWNN" "EOVJH" "KIEEG" "HUMNR" "GDURJ" "SMXHI" "ZPSNG" "ASCTA" "DMCLQ"
#> [172] "AMQCT" "DEXEN" "HUBNU" "JGLPO" "ZZOJE" "HGXHF" "ZDUNX" "QVIER" "APIJB"
#> [181] "IXWHA" "FVAJV" "JNQTO" "GMKRS" "ALAAW" "CFAOO" "ILMMA" "WCWCY" "TUMDX"
#> [190] "ESLXC" "UDDQN" "JFDES" "DNWAO" "OSIWO" "YVESI" "OYXBM" "FCZKS" "KQNCX"
#> [199] "XZYXY" "FGMSY" "RTAQC" "DPOFW" "RSBES" "ANDWR" "PKVNI" "EDAJP" "BMPAP"
#> [208] "XXEWB" "HKDQR" "KZXDT" "BWBHM" "PSENI" "EZWMZ" "ZCALK" "EVZVY" "DVYQK"
#> [217] "MHAST" "WFPZM" "IVSAF" "FBYWQ" "GMLSK" "GDOEG" "TZADP" "TWYWO" "TKPGE"
#> [226] "KMLIB" "NFLQC" "YUFBP" "DRRFY" "OLPXP" "NHMPB" "RERWZ" "AHPXC" "JDLBE"
#> 
#> $C
#>  [1] "XANPQ" "XXLXR" "LVPBM" "VMNMC" "TOPBW" "EFYUO" "HCOKT" "EESZJ" "NDFRZ"
#> [10] "TKSPP" "WSADN" "DZQHW" "BCSJF" "OQWPE" "YGFLL" "MUASG" "METQI" "EVQLX"
#> [19] "NHHGE" "RZRBQ" "WMSKJ" "DSNYH" "NKIZL" "GFHEG" "XZYCL" "ZUVZX" "EUUJG"
#> [28] "CQDWL"
#> 
#> $D
#>  [1] "JXSLX" "GQANJ" "JSKLK" "ESOTI" "ETDVO" "WUQME" "HQDOE" "HDGRH" "NQFJX"
#> [10] "FGLMK" "VYOJL" "IJWPG" "KSNSW" "WGCRR" "EOLQM" "SIRFE" "TDDWL" "KXNJZ"
#> [19] "PAIDF" "QMZNA" "WVJGI" "XVRYM" "FUBDA" "KXEAA" "WLDPP" "PNIYQ" "UDRJH"
#> [28] "LFCDH" "CCSFB" "NBIHL" "VVZZO" "LNWZE" "YGNDE" "WZXBY" "IDEXK" "RNDVA"
#> [37] "TFAFB" "RSBQZ" "MTNPQ" "AETJY" "BJLGH" "XRTGH"
#> 
#> $`A:B`
#>   [1] "YMIII" "TGRSB" "EDQGT" "JSWWK" "UYLOB" "RMAEP" "VBTNM" "VXQWD" "JQKSZ"
#>  [10] "JJKNI" "QPMWC" "XTRKL" "EEGGG" "FSGGO" "QGTDI" "AXDMY" "JBXRU" "EDSRI"
#>  [19] "FSFWT" "VQLTJ" "HPMVK" "EXHLU" "PEQCJ" "ATLMY" "DKHEL" "SBIEA" "MMQSM"
#>  [28] "VYNOG" "YMCMZ" "RLPYL" "IKKZA" "OGBDE" "AHDRZ" "CMTPQ" "ZFSGS" "XEIML"
#>  [37] "FRWGN" "EDVLI" "DEJXH" "NUGIR" "CTQAH" "YGHYR" "NJTFO" "VKNMJ" "NJAAF"
#>  [46] "OGJBW" "VEUTP" "BPYQN" "MYOHQ" "IMKMQ" "ILCPG" "OPZDH" "XEUKR" "QLIDJ"
#>  [55] "SMXKI" "LPUDQ" "IITIH" "DZESC" "XRWLY" "LKPNQ" "GNADE" "WSWRG" "ZYNUB"
#>  [64] "PNFVW" "YZEGX" "VFMUP" "OBEEH" "GVSWW" "QBATS" "NQFKN" "ZULKL" "UGEQR"
#>  [73] "XLAZZ" "HVVJY" "EXADT" "YXLER" "NDLWN" "WVEAX" "KFQEN" "KWSVW" "PKSFY"
#>  [82] "GJMOI" "AHKEN" "UUABD" "HBCKT" "MSBLF" "FPCEU" "PUFUS" "RUQLK" "SECSL"
#>  [91] "NTEPI" "AWAOB" "SIMFZ" "FHNTU" "PRTPE" "YBBNB" "IIXXE" "GCCNI" "TIHWF"
#> [100] "FBVKW" "XGTPM" "RFYGE" "BBMST" "QDPNF" "NQCQW" "KPZES" "WYGZV" "NFSGU"
#> [109] "MUYCQ" "CYXUZ" "MELKZ" "TVUKT" "DVSVN" "OEFPV" "YAVVE" "JBVGX" "QHANP"
#> [118] "XQCFD" "TPUBB" "MJIEP" "CDHIU" "JMLIJ" "DIUCE" "ZCEQT" "CNIGR" "IQLDM"
#> [127] "CASZE" "BPQZG" "ZGZGI" "VOJBR" "ZWTTH" "PSIUX" "XUOUB" "XODZH" "BUSUE"
#> [136] "LTWFM" "CNWHB" "NXDPR" "DBENV" "LIDPN" "PHGRU" "JDTNH" "TMRSS" "VFDLE"
#> [145] "OINFR" "KYRJQ" "LBLJX" "UPYMG" "VEWNH" "SRVEG" "PURYK" "JFXKH" "BSOVT"
#> [154] "XTDCZ" "XEFBQ" "ELCJJ" "MKQSV" "BUMEC" "ULCKN" "OOFAL" "JYTWP" "GFYZG"
#> [163] "XLHWL" "KJXHG" "MGPFN"
#> 
#> $`A:C`
#>  [1] "DLXKU" "UHDMH" "WNCBJ" "XFRMN" "JGOFD" "AZZNR" "ZZNBK" "HUYMF" "NDIUI"
#> [10] "PMRKN" "NDRUX" "LMZAH" "FQTJD" "SGPJB" "PHWGC"
#> 
#> $`A:D`
#>  [1] "QQAJB" "QBCLV" "RILGB" "ADVQM" "ELGUI" "DEVMB" "MILSE" "BOEWQ" "CFUVR"
#> [10] "ENYGM" "JETOX" "XIOEJ" "UGDLC" "QQIXI" "DUKGW" "WAICA" "NNQKY" "DPURT"
#> [19] "UKZTO" "IRBGU"
#> 
#> $`B:C`
#>  [1] "RVVZD" "VLFGJ" "OIEYP" "XCNMA" "TNEZM" "EIEMM" "JZQCZ" "KJHEO" "QAGKJ"
#> [10] "FUGRT" "JJVZS" "CXUZH" "YZCRQ" "KRZUH" "SABYO" "ZHWZB" "JRDPA" "YXVYY"
#> [19] "HTDIJ" "PQXCE" "OHSIB" "MWIDH" "LLOEP" "NVZMU" "OOEXB" "JOEHG" "KRPAE"
#> [28] "YMTXG" "EHOZF" "QVOSJ" "ZKXTG" "QYSXT" "MUPOH" "SLPUT" "JJHYS" "OUSUY"
#> [37] "SFJFI" "NNUXG" "ITROK" "IJZMQ" "GFYPZ" "HNXOK" "CVNNM" "XTWSG" "VBDEY"
#> [46] "EDOEK" "KUXDB" "MRTRS" "UIBXS" "KUEEF" "SIWMJ" "QANBM" "TDAXO" "LMADF"
#> [55] "OLWSK" "RHYGO" "PPAJR" "XJFSQ" "XBTRL" "BNRNI" "JKXOQ" "KONHI" "QSVYN"
#> [64] "IMBEO" "FKKXU" "AVAOC" "ZUEHW" "GJGPD" "OMYAP" "QHZTH" "PIEKJ" "GVFRN"
#> [73] "NWAPA" "PSTDQ" "RIGEM" "NAAGM" "XFXPW" "RKVBZ" "UTTHI" "SSYEZ" "XCMJL"
#> [82] "MVAZY" "CPGNC" "LAGHX" "NICDN" "VRZAV"
#> 
#> $`B:D`
#>   [1] "FXVQY" "SUHYR" "WFMVD" "JMLGP" "WOUJH" "RSAVL" "CYSVI" "NTTAV" "LYYBV"
#>  [10] "XZGEN" "ZBDZX" "FEOJA" "BRHKR" "DJLHU" "OBLUC" "TVXFM" "FIWCF" "YYGCY"
#>  [19] "CILHD" "KTPUX" "QCDQO" "NNITQ" "EANKE" "XTSPI" "NYTZB" "PULJB" "DUCUP"
#>  [28] "WPODU" "HZHRE" "VPHBR" "HBRBU" "IHTJY" "MKLKL" "THMEW" "SMWSN" "RYSSB"
#>  [37] "UJYGF" "MDPSX" "VXBYG" "QHHJL" "PMJTE" "HSNVF" "LFENA" "ZTSKQ" "RJZID"
#>  [46] "KGLHU" "IROWO" "FQSSV" "KBSMW" "HTUQZ" "BUWVX" "GMEIS" "RVJXU" "FIIDX"
#>  [55] "LEXUS" "JZPQG" "QQHLH" "CDCLI" "ZVNSS" "IMMMW" "CGJJW" "RBWDD" "IXPVR"
#>  [64] "BXGZG" "AZGKM" "CGVUY" "CFOLW" "ICUDD" "QYVHD" "DNMCP" "HPQIZ" "JMHVY"
#>  [73] "NNOFC" "FKAKN" "ANCSV" "GYTQE" "FEHPV" "NFIJG" "JWCVN" "PBJUZ" "ZWAXW"
#>  [82] "XGAIE" "ZTZQN" "XHHGN" "UUEZG" "SEPHM" "EZFPW" "NOTTT" "TCZFY" "PXWLG"
#>  [91] "QNFRJ" "HTMMA" "ILKLS" "BBPBK" "FXUOM" "BKIAJ" "HXLQP" "XVSXL" "BOEOS"
#> [100] "ZKMWK"
#> 
#> $`C:D`
#>  [1] "RLGIV" "VEHVJ" "WFOEH" "DGXDI" "OMFNZ" "PTPEB" "XFISS" "FKSKP" "WNKAY"
#> [10] "LRYYN" "PMITG" "UENSU" "NWEMI"
#> 
#> $`A:B:C`
#>  [1] "PJDAK" "YERZG" "VTDFY" "XNMLQ" "CTXQJ" "ZFQSC" "NLCGE" "CAEPI" "THFVD"
#> [10] "QCQYM" "MGYFU" "ZLSYT" "CQFRD" "DTUNJ" "DEJHX" "JTHVY" "BQPMG" "FLVAN"
#> [19] "SLTBK" "QUIYZ" "RWQRC" "VRCUY" "LOXNJ" "LGEZW" "WMDQQ" "MTFZZ" "FTQQY"
#> [28] "IIMDF" "ZLXCO" "VSVKU" "DQAQJ" "HFGFP" "TQZGP" "RGUOJ" "YYBEN" "GLOQV"
#> [37] "ABUCB" "ASMJV" "QZHIM" "UGTLY" "YZJRC" "PKMTY" "KNMST" "MTLXT" "NTTIS"
#> [46] "PEGKE" "GHFFA" "MRIGY" "IMGXL"
#> 
#> $`A:B:D`
#>  [1] "FFNWH" "IJJRE" "FQPYR" "BLBGS" "NOVTT" "VTTWS" "EETXA" "VLYNP" "REHJC"
#> [10] "REPUE" "CAFSA" "FJIDR" "XBHHA" "RWCFT" "KJQIL" "TDKDI" "SWCZP" "BLQZQ"
#> [19] "GFJIZ" "VKIZK" "DWCPR" "LDVDJ" "XJMPD" "EBETB" "TUFEN" "CQCXI" "AKDQI"
#> [28] "KLUNS" "ARPIW" "XKVWP" "ZFZFA" "QURGV" "XSCCN" "FSQSO" "PIBAW" "BUWLA"
#> [37] "YSRVC" "AQWMD" "ACHTF" "FTIPT" "GWWLE" "VBSCC" "ABEMT" "TOFMJ" "NSRJR"
#> [46] "OKOFY" "SQZXR" "REGHA" "TSZEW" "HWFMB" "QGZJS" "NDVLC" "PESCC" "JUOBX"
#> [55] "KMQCB" "FWEPE" "CVRZH" "TCUQK" "PCSXL" "LKHAF" "QBOOQ" "VKYIE" "TCCXT"
#> [64] "LZQQQ" "RBMMS" "RVXBP"
#> 
#> $`A:C:D`
#> [1] "GTHER" "ZZEFR" "XLRET" "SAJSX" "RGCQE" "OKSVU" "LSJDC" "RLCTQ" "RTOTK"
#> 
#> $`B:C:D`
#>  [1] "BNPBF" "PXEPS" "UOFIO" "BXCSG" "AHJEA" "WJOEZ" "HMWMO" "SSJDC" "LRNQE"
#> [10] "NBFXV" "OQNBT" "OEDTK" "SJIFG" "VJNKZ" "MVTRS" "LIQPH" "CJJQS" "CENUC"
#> [19] "CWFIT" "DQBSD" "XIMOT" "LDXKS" "LPADU" "YCLDK" "KPDFM" "MXKFQ" "OWIGJ"
#> [28] "TBRWY" "URFHN" "NNPXR"
#> 
#> $`A:B:C:D`
#>  [1] "SHIPQ" "LAPDM" "VALVS" "TILQM" "GBZRN" "MSOYN" "TWLSW" "TRVNP" "KIUTG"
#> [10] "NFRZT" "CHHZV" "DCKWJ" "CAWDQ" "TXMHX" "BDLQC" "AECDH" "RHCYI" "JPMVL"
#> [19] "XMLCQ" "KWBFR"
#> 

##
## Example using a list of item indexes belonging to the
## specified group.
##
GroupA.i <- which(geneNames %in% GroupA)
GroupB.i <- which(geneNames %in% GroupB)
GroupC.i <- which(geneNames %in% GroupC)
GroupD.i <- which(geneNames %in% GroupD)
input.i  <-list(A=GroupA.i,B=GroupB.i,C=GroupC.i,D=GroupD.i)
input.i
#> $A
#>   [1]   4   5   6   8   9  13  17  20  22  23  28  30  33  35  36  39  40  43
#>  [19]  45  49  50  55  59  60  66  67  72  75  76  77  82  86  88  89  92  97
#>  [37]  98  99 100 101 104 109 110 115 117 118 120 122 124 125 126 130 131 133
#>  [55] 137 142 146 148 149 151 155 156 157 158 160 166 170 175 176 177 178 179
#>  [73] 185 186 188 189 193 194 196 198 199 200 204 205 206 207 208 212 214 216
#>  [91] 217 219 225 226 227 229 230 232 236 240 241 242 243 249 255 259 260 261
#> [109] 263 267 273 274 275 278 279 280 281 282 287 289 293 296 305 308 312 314
#> [127] 315 317 320 321 322 324 327 329 330 333 334 335 337 338 340 343 344 345
#> [145] 351 353 356 362 366 370 371 373 374 377 379 381 382 384 386 389 392 396
#> [163] 406 410 411 414 416 419 422 424 425 426 428 432 433 434 435 438 441 444
#> [181] 446 447 448 449 451 457 460 462 464 466 467 468 470 471 472 473 475 476
#> [199] 478 479 480 481 483 485 489 492 495 497 498 499 500 501 503 505 508 509
#> [217] 514 521 524 527 536 537 540 542 543 545 546 548 550 556 558 561 565 569
#> [235] 571 572 575 582 585 586 587 592 594 595 603 604 607 609 613 618 619 620
#> [253] 621 622 623 624 627 631 634 637 638 642 643 644 651 653 656 657 661 666
#> [271] 669 671 672 673 674 675 676 678 680 682 685 686 690 695 704 707 708 711
#> [289] 712 714 715 717 718 719 721 723 726 727 730 734 735 737 738 740 741 744
#> [307] 746 748 749 753 754 755 757 760 763 766 769 771 772 773 780 784 785 788
#> [325] 790 791 798 803 808 809 812 814 817 818 826 827 829 830 832 834 835 837
#> [343] 838 839 840 844 845 847 851 852 855 856 857 869 873 874 877 878 882 887
#> [361] 888 892 894 895 896 899 900 904 907 909 910 911 920 930 933 936 944 945
#> [379] 946 949 951 955 959 960 962 965 966 969 972 974 976 979 981 983 984 986
#> [397] 991 992 994 999
#> 
#> $B
#>   [1]    2    3    4    6    7    8   10   11   12   13   14   15   16   17   18
#>  [16]   19   21   22   23   24   25   26   27   28   29   30   36   37   38   40
#>  [31]   41   42   43   44   45   46   47   48   49   50   51   52   53   57   59
#>  [46]   60   61   62   63   64   65   66   69   70   72   73   75   76   77   80
#>  [61]   81   82   83   85   86   88   89   90   91   92   93   95   98   99  100
#>  [76]  101  107  108  109  110  112  113  114  115  117  118  120  121  123  124
#>  [91]  125  126  127  129  130  132  133  134  135  136  139  141  142  143  144
#> [106]  145  146  147  149  151  153  154  155  156  157  159  160  161  165  166
#> [121]  168  169  170  171  172  173  174  175  176  178  179  181  186  187  188
#> [136]  190  191  192  193  195  198  199  200  202  203  204  205  206  208  210
#> [151]  212  213  214  215  217  218  219  220  221  222  224  226  227  230  231
#> [166]  232  233  234  235  236  237  239  242  243  244  245  247  251  253  254
#> [181]  255  256  257  258  259  260  261  262  263  264  265  267  268  270  271
#> [196]  272  273  276  277  278  279  280  281  283  284  285  288  290  292  293
#> [211]  296  297  298  299  300  301  302  303  304  307  308  309  310  312  313
#> [226]  314  317  318  319  320  321  322  323  324  325  328  330  331  332  333
#> [241]  334  335  336  337  339  341  343  344  345  346  348  349  351  353  355
#> [256]  356  357  358  359  360  361  364  365  366  367  368  369  370  371  372
#> [271]  373  374  377  379  380  383  384  385  386  387  388  389  390  392  393
#> [286]  394  395  396  399  400  401  402  403  404  405  406  407  408  409  410
#> [301]  411  413  414  416  417  418  419  421  422  425  426  427  428  429  431
#> [316]  434  435  436  437  438  439  440  441  443  444  445  447  450  455  456
#> [331]  459  460  461  462  463  465  466  467  468  470  471  472  473  475  476
#> [346]  477  478  479  481  483  484  485  486  487  489  490  491  492  494  495
#> [361]  496  497  498  502  503  504  506  507  510  511  513  514  515  517  518
#> [376]  519  520  521  522  523  524  527  528  529  530  531  532  534  535  536
#> [391]  538  539  540  541  542  543  544  545  546  547  548  549  550  551  552
#> [406]  553  554  555  556  557  558  560  563  564  565  566  567  568  569  570
#> [421]  572  573  574  575  576  578  579  580  582  583  587  588  589  590  591
#> [436]  592  593  594  595  596  599  600  601  602  603  604  605  607  609  611
#> [451]  612  613  614  615  617  619  620  621  622  624  625  627  628  630  632
#> [466]  633  635  636  638  639  640  641  642  643  644  645  647  648  649  650
#> [481]  651  652  654  655  656  657  660  662  663  664  666  667  668  669  670
#> [496]  671  672  674  675  676  677  678  684  685  686  688  689  690  691  692
#> [511]  693  694  695  696  697  698  699  700  701  702  704  705  706  707  708
#> [526]  711  712  713  715  716  717  719  720  721  723  724  725  726  727  728
#> [541]  729  730  731  734  735  736  739  742  743  744  745  746  747  748  749
#> [556]  750  751  753  754  756  757  758  760  761  762  765  767  768  769  770
#> [571]  772  773  774  775  776  777  778  780  781  782  783  784  785  786  788
#> [586]  790  791  792  793  795  796  797  798  799  800  801  803  804  805  806
#> [601]  808  809  810  811  812  813  814  815  816  818  820  821  822  823  826
#> [616]  827  828  829  830  831  832  833  834  836  837  838  840  841  842  843
#> [631]  844  846  847  848  849  850  851  852  853  854  855  857  858  859  860
#> [646]  861  862  863  864  865  867  868  869  870  871  872  874  875  876  879
#> [661]  880  881  882  883  886  888  889  892  893  894  895  897  898  899  900
#> [676]  901  902  903  904  905  906  907  909  910  911  914  915  916  917  919
#> [691]  920  921  922  923  924  926  927  929  930  931  932  934  935  939  940
#> [706]  941  942  943  944  945  946  947  948  949  951  952  953  954  958  961
#> [721]  962  964  965  966  967  968  969  971  974  975  977  978  979  980  983
#> [736]  984  986  987  988  989  990  991  992  994  995  996  997  998  999 1000
#> 
#> $C
#>   [1]    1    2   11   26   30   31   34   35   36   37   41   51   52   54   57
#>  [16]   59   60   66   67   68   71   73   74   76   79   83   93   94   99  104
#>  [31]  105  112  113  114  118  122  134  136  141  142  145  146  149  150  152
#>  [46]  158  160  185  187  191  195  196  199  207  208  209  211  213  217  225
#>  [61]  230  237  238  256  257  258  262  264  270  274  277  286  296  302  304
#>  [76]  305  308  314  317  318  320  333  334  335  343  347  349  360  363  365
#>  [91]  368  379  386  390  392  393  394  395  397  398  400  404  405  409  413
#> [106]  416  420  422  423  424  427  433  436  437  439  455  458  459  463  465
#> [121]  469  472  474  480  481  491  492  495  500  504  506  507  508  511  512
#> [136]  513  514  527  528  529  533  535  536  538  540  541  546  547  549  552
#> [151]  553  560  562  564  566  575  577  578  579  580  593  594  600  609  610
#> [166]  611  617  621  622  625  632  634  638  640  641  645  646  654  655  663
#> [181]  665  667  672  673  678  687  697  700  705  706  717  720  723  727  729
#> [196]  737  738  739  743  748  760  778  780  784  785  788  790  791  792  805
#> [211]  806  811  825  826  834  835  841  842  851  852  855  857  861  862  866
#> [226]  868  870  872  878  880  884  889  905  911  923  929  930  948  955  956
#> [241]  961  969  970  976  982  984  985  986  993 1000
#> 
#> $D
#>   [1]    4    5    7   16   18   19   20   23   35   42   43   47   48   52   58
#>  [16]   59   64   65   71   81   90   94   96   99  101  106  108  112  113  115
#>  [31]  116  119  120  121  125  128  132  133  138  140  142  144  146  148  155
#>  [46]  156  157  164  165  169  172  173  178  183  188  190  192  196  200  207
#>  [61]  208  209  210  213  217  228  233  234  236  237  240  241  242  243  246
#>  [76]  250  257  259  260  261  266  269  270  272  276  277  279  281  289  291
#>  [91]  294  300  307  313  314  317  321  325  329  330  334  339  343  348  350
#> [106]  351  363  364  375  381  384  387  392  396  397  400  413  414  417  423
#> [121]  424  425  426  433  440  441  445  449  451  453  458  459  469  470  473
#> [136]  479  480  484  489  490  500  505  510  516  522  529  537  544  547  551
#> [151]  561  562  564  566  576  579  581  583  584  587  591  593  601  604  607
#> [166]  608  610  611  612  618  620  621  622  625  627  632  634  635  637  638
#> [181]  639  643  646  651  652  657  658  659  667  671  675  677  679  681  688
#> [196]  689  694  696  699  700  707  720  723  725  726  728  730  733  736  750
#> [211]  754  755  757  758  759  764  767  768  770  772  774  776  779  785  788
#> [226]  790  791  792  793  794  796  798  801  804  808  811  812  814  815  817
#> [241]  820  824  826  827  829  831  833  835  841  843  844  846  848  849  859
#> [256]  860  862  864  868  869  873  874  877  881  882  884  885  887  890  891
#> [271]  893  895  897  903  906  908  909  910  917  919  925  931  932  935  937
#> [286]  940  945  949  950  952  958  961  967  973  975  980  985  987  995 1000
#> 

venn(input.i)


##
## Example using a data frame of indicator ('f'lag) columns
##
GroupA.f <- geneNames %in% GroupA
GroupB.f <- geneNames %in% GroupB
GroupC.f <- geneNames %in% GroupC
GroupD.f <- geneNames %in% GroupD
input.df <- data.frame(A=GroupA.f,B=GroupB.f,C=GroupC.f,D=GroupD.f)
head(input.df)
#>       A     B     C     D
#> 1 FALSE FALSE  TRUE FALSE
#> 2 FALSE  TRUE  TRUE FALSE
#> 3 FALSE  TRUE FALSE FALSE
#> 4  TRUE  TRUE FALSE  TRUE
#> 5  TRUE FALSE FALSE  TRUE
#> 6  TRUE  TRUE FALSE FALSE
venn(input.df)

## smaller set to create empty groupings
small <- input.df[1:20,]

venn(small, simplify=FALSE) # with empty groupings

venn(small, simplify=TRUE)  # without empty groupings
#> Warning: Not shown: 0101 contains 4


## Capture group counts, but don't plot
tmp <- venn(input, show.plot=FALSE)
tmp
#>      num A B C D
#> 0000   0 0 0 0 0
#> 0001  42 0 0 0 1
#> 0010  28 0 0 1 0
#> 0011  13 0 0 1 1
#> 0100 234 0 1 0 0
#> 0101 100 0 1 0 1
#> 0110  86 0 1 1 0
#> 0111  30 0 1 1 1
#> 1000  56 1 0 0 0
#> 1001  20 1 0 0 1
#> 1010  15 1 0 1 0
#> 1011   9 1 0 1 1
#> 1100 165 1 1 0 0
#> 1101  66 1 1 0 1
#> 1110  49 1 1 1 0
#> 1111  20 1 1 1 1
#> attr(,"intersections")
#> attr(,"intersections")$A
#>  [1] "RIOLM" "UCCWI" "GZQZM" "UEWSV" "WKUPX" "CPFTV" "JCIDI" "FHWLJ" "QIVKH"
#> [10] "RXWMV" "NTSKM" "NRKXT" "OHKPP" "SSQMS" "YTLNJ" "LSGRC" "TQGJB" "RGKIA"
#> [19] "HXKMK" "OYLFM" "HWLNL" "NNHTV" "CQIMT" "NSKHG" "ZUUYV" "GSSQG" "AVBXA"
#> [28] "CAQVR" "LUYHW" "UPMLR" "NHOZP" "TKAEU" "VVNNS" "NQKHR" "TVYYJ" "ZVMPS"
#> [37] "TFSET" "BOAWV" "HWFUN" "WBFWJ" "EEKPP" "KAPCQ" "IKZUW" "RKQRB" "EFGQT"
#> [46] "YLKRA" "UURZW" "IDUGD" "CTTEQ" "BHZPH" "EWTBX" "YKRMH" "GGCEX" "LFYLT"
#> [55] "LODJK" "XDIPD"
#> 
#> attr(,"intersections")$B
#>   [1] "AORUB" "PPYOH" "JIFKL" "HIAQL" "OFCZV" "CZQBG" "XMVVN" "TRJRB" "GWGPA"
#>  [10] "EUCTP" "MBZRN" "EKUYW" "QOHIZ" "QGNEQ" "UXDGX" "OKKFP" "ASQJQ" "AFHPT"
#>  [19] "LGMZK" "EAHUB" "KFRHL" "OUAVE" "GVOQL" "NZADX" "PKNFK" "PSZIE" "LZNOY"
#>  [28] "PAYBP" "DATCW" "CVHIX" "UPSEF" "GQOWT" "SZOUJ" "FCQYQ" "VNWVW" "ONATZ"
#>  [37] "OCWEK" "RFYJH" "DRXHH" "ANXQH" "HOGTN" "PJCDV" "ECCFP" "SCPLR" "LNNKZ"
#>  [46] "XCCXU" "VXXYJ" "ZBUCK" "JJNZB" "MANBN" "SPAIS" "BZQPN" "EUMIW" "YBYXE"
#>  [55] "BADKD" "ZNPHZ" "MSIJK" "GGQQF" "VMYYC" "RQLER" "OKAUH" "SOFSM" "YJYTM"
#>  [64] "WTIWO" "WDKJP" "CENDF" "XPIMA" "SGAGM" "VQGRC" "IMGSX" "MANTZ" "OAOBG"
#>  [73] "YQMJC" "WGKSP" "JYGAI" "BJDFG" "NQLUG" "KGXCA" "WJCFD" "QZQKF" "QGYBK"
#>  [82] "AQRRA" "VWKZJ" "UZBWI" "BMNHB" "VQHER" "LOUTU" "MWPJJ" "NOGVM" "ZTOBO"
#>  [91] "XCXTQ" "LQODV" "ANMYA" "NMRUD" "QGVPU" "MKUQK" "KGMIP" "PCCRX" "EFNIB"
#> [100] "HIXMT" "OQWRF" "YMGRW" "BEXON" "KQCNM" "HLWPY" "GAXSN" "ECBUW" "JZWJF"
#> [109] "BAZUG" "ZUIHY" "GCXHG" "AXYCM" "OQATO" "UXGHW" "LUIBK" "MIVAL" "PJYUF"
#> [118] "WAZFP" "NWOKR" "BLVKE" "HISPZ" "YHLDV" "WYFRA" "YLIGE" "SOZOK" "CCGTT"
#> [127] "RYSVI" "SNAKS" "OHSRN" "UCNJQ" "CFZHA" "MFGMD" "FPARL" "SKSDX" "UFFAA"
#> [136] "GSPOT" "EAIPH" "UIRPS" "YNNWY" "LCVOU" "QMALB" "GUBHT" "FUVPX" "NGMXH"
#> [145] "TACJD" "MLZPB" "JHKBA" "KNDMB" "KZEMN" "AEBKV" "TEBUJ" "VLQGX" "IEICM"
#> [154] "KPKPJ" "XCBJB" "IVJSO" "YQPFK" "IOILU" "NDUFF" "JIYDO" "VZQXC" "KIYIF"
#> [163] "VMWNN" "EOVJH" "KIEEG" "HUMNR" "GDURJ" "SMXHI" "ZPSNG" "ASCTA" "DMCLQ"
#> [172] "AMQCT" "DEXEN" "HUBNU" "JGLPO" "ZZOJE" "HGXHF" "ZDUNX" "QVIER" "APIJB"
#> [181] "IXWHA" "FVAJV" "JNQTO" "GMKRS" "ALAAW" "CFAOO" "ILMMA" "WCWCY" "TUMDX"
#> [190] "ESLXC" "UDDQN" "JFDES" "DNWAO" "OSIWO" "YVESI" "OYXBM" "FCZKS" "KQNCX"
#> [199] "XZYXY" "FGMSY" "RTAQC" "DPOFW" "RSBES" "ANDWR" "PKVNI" "EDAJP" "BMPAP"
#> [208] "XXEWB" "HKDQR" "KZXDT" "BWBHM" "PSENI" "EZWMZ" "ZCALK" "EVZVY" "DVYQK"
#> [217] "MHAST" "WFPZM" "IVSAF" "FBYWQ" "GMLSK" "GDOEG" "TZADP" "TWYWO" "TKPGE"
#> [226] "KMLIB" "NFLQC" "YUFBP" "DRRFY" "OLPXP" "NHMPB" "RERWZ" "AHPXC" "JDLBE"
#> 
#> attr(,"intersections")$C
#>  [1] "XANPQ" "XXLXR" "LVPBM" "VMNMC" "TOPBW" "EFYUO" "HCOKT" "EESZJ" "NDFRZ"
#> [10] "TKSPP" "WSADN" "DZQHW" "BCSJF" "OQWPE" "YGFLL" "MUASG" "METQI" "EVQLX"
#> [19] "NHHGE" "RZRBQ" "WMSKJ" "DSNYH" "NKIZL" "GFHEG" "XZYCL" "ZUVZX" "EUUJG"
#> [28] "CQDWL"
#> 
#> attr(,"intersections")$D
#>  [1] "JXSLX" "GQANJ" "JSKLK" "ESOTI" "ETDVO" "WUQME" "HQDOE" "HDGRH" "NQFJX"
#> [10] "FGLMK" "VYOJL" "IJWPG" "KSNSW" "WGCRR" "EOLQM" "SIRFE" "TDDWL" "KXNJZ"
#> [19] "PAIDF" "QMZNA" "WVJGI" "XVRYM" "FUBDA" "KXEAA" "WLDPP" "PNIYQ" "UDRJH"
#> [28] "LFCDH" "CCSFB" "NBIHL" "VVZZO" "LNWZE" "YGNDE" "WZXBY" "IDEXK" "RNDVA"
#> [37] "TFAFB" "RSBQZ" "MTNPQ" "AETJY" "BJLGH" "XRTGH"
#> 
#> attr(,"intersections")$`A:B`
#>   [1] "YMIII" "TGRSB" "EDQGT" "JSWWK" "UYLOB" "RMAEP" "VBTNM" "VXQWD" "JQKSZ"
#>  [10] "JJKNI" "QPMWC" "XTRKL" "EEGGG" "FSGGO" "QGTDI" "AXDMY" "JBXRU" "EDSRI"
#>  [19] "FSFWT" "VQLTJ" "HPMVK" "EXHLU" "PEQCJ" "ATLMY" "DKHEL" "SBIEA" "MMQSM"
#>  [28] "VYNOG" "YMCMZ" "RLPYL" "IKKZA" "OGBDE" "AHDRZ" "CMTPQ" "ZFSGS" "XEIML"
#>  [37] "FRWGN" "EDVLI" "DEJXH" "NUGIR" "CTQAH" "YGHYR" "NJTFO" "VKNMJ" "NJAAF"
#>  [46] "OGJBW" "VEUTP" "BPYQN" "MYOHQ" "IMKMQ" "ILCPG" "OPZDH" "XEUKR" "QLIDJ"
#>  [55] "SMXKI" "LPUDQ" "IITIH" "DZESC" "XRWLY" "LKPNQ" "GNADE" "WSWRG" "ZYNUB"
#>  [64] "PNFVW" "YZEGX" "VFMUP" "OBEEH" "GVSWW" "QBATS" "NQFKN" "ZULKL" "UGEQR"
#>  [73] "XLAZZ" "HVVJY" "EXADT" "YXLER" "NDLWN" "WVEAX" "KFQEN" "KWSVW" "PKSFY"
#>  [82] "GJMOI" "AHKEN" "UUABD" "HBCKT" "MSBLF" "FPCEU" "PUFUS" "RUQLK" "SECSL"
#>  [91] "NTEPI" "AWAOB" "SIMFZ" "FHNTU" "PRTPE" "YBBNB" "IIXXE" "GCCNI" "TIHWF"
#> [100] "FBVKW" "XGTPM" "RFYGE" "BBMST" "QDPNF" "NQCQW" "KPZES" "WYGZV" "NFSGU"
#> [109] "MUYCQ" "CYXUZ" "MELKZ" "TVUKT" "DVSVN" "OEFPV" "YAVVE" "JBVGX" "QHANP"
#> [118] "XQCFD" "TPUBB" "MJIEP" "CDHIU" "JMLIJ" "DIUCE" "ZCEQT" "CNIGR" "IQLDM"
#> [127] "CASZE" "BPQZG" "ZGZGI" "VOJBR" "ZWTTH" "PSIUX" "XUOUB" "XODZH" "BUSUE"
#> [136] "LTWFM" "CNWHB" "NXDPR" "DBENV" "LIDPN" "PHGRU" "JDTNH" "TMRSS" "VFDLE"
#> [145] "OINFR" "KYRJQ" "LBLJX" "UPYMG" "VEWNH" "SRVEG" "PURYK" "JFXKH" "BSOVT"
#> [154] "XTDCZ" "XEFBQ" "ELCJJ" "MKQSV" "BUMEC" "ULCKN" "OOFAL" "JYTWP" "GFYZG"
#> [163] "XLHWL" "KJXHG" "MGPFN"
#> 
#> attr(,"intersections")$`A:C`
#>  [1] "DLXKU" "UHDMH" "WNCBJ" "XFRMN" "JGOFD" "AZZNR" "ZZNBK" "HUYMF" "NDIUI"
#> [10] "PMRKN" "NDRUX" "LMZAH" "FQTJD" "SGPJB" "PHWGC"
#> 
#> attr(,"intersections")$`A:D`
#>  [1] "QQAJB" "QBCLV" "RILGB" "ADVQM" "ELGUI" "DEVMB" "MILSE" "BOEWQ" "CFUVR"
#> [10] "ENYGM" "JETOX" "XIOEJ" "UGDLC" "QQIXI" "DUKGW" "WAICA" "NNQKY" "DPURT"
#> [19] "UKZTO" "IRBGU"
#> 
#> attr(,"intersections")$`B:C`
#>  [1] "RVVZD" "VLFGJ" "OIEYP" "XCNMA" "TNEZM" "EIEMM" "JZQCZ" "KJHEO" "QAGKJ"
#> [10] "FUGRT" "JJVZS" "CXUZH" "YZCRQ" "KRZUH" "SABYO" "ZHWZB" "JRDPA" "YXVYY"
#> [19] "HTDIJ" "PQXCE" "OHSIB" "MWIDH" "LLOEP" "NVZMU" "OOEXB" "JOEHG" "KRPAE"
#> [28] "YMTXG" "EHOZF" "QVOSJ" "ZKXTG" "QYSXT" "MUPOH" "SLPUT" "JJHYS" "OUSUY"
#> [37] "SFJFI" "NNUXG" "ITROK" "IJZMQ" "GFYPZ" "HNXOK" "CVNNM" "XTWSG" "VBDEY"
#> [46] "EDOEK" "KUXDB" "MRTRS" "UIBXS" "KUEEF" "SIWMJ" "QANBM" "TDAXO" "LMADF"
#> [55] "OLWSK" "RHYGO" "PPAJR" "XJFSQ" "XBTRL" "BNRNI" "JKXOQ" "KONHI" "QSVYN"
#> [64] "IMBEO" "FKKXU" "AVAOC" "ZUEHW" "GJGPD" "OMYAP" "QHZTH" "PIEKJ" "GVFRN"
#> [73] "NWAPA" "PSTDQ" "RIGEM" "NAAGM" "XFXPW" "RKVBZ" "UTTHI" "SSYEZ" "XCMJL"
#> [82] "MVAZY" "CPGNC" "LAGHX" "NICDN" "VRZAV"
#> 
#> attr(,"intersections")$`B:D`
#>   [1] "FXVQY" "SUHYR" "WFMVD" "JMLGP" "WOUJH" "RSAVL" "CYSVI" "NTTAV" "LYYBV"
#>  [10] "XZGEN" "ZBDZX" "FEOJA" "BRHKR" "DJLHU" "OBLUC" "TVXFM" "FIWCF" "YYGCY"
#>  [19] "CILHD" "KTPUX" "QCDQO" "NNITQ" "EANKE" "XTSPI" "NYTZB" "PULJB" "DUCUP"
#>  [28] "WPODU" "HZHRE" "VPHBR" "HBRBU" "IHTJY" "MKLKL" "THMEW" "SMWSN" "RYSSB"
#>  [37] "UJYGF" "MDPSX" "VXBYG" "QHHJL" "PMJTE" "HSNVF" "LFENA" "ZTSKQ" "RJZID"
#>  [46] "KGLHU" "IROWO" "FQSSV" "KBSMW" "HTUQZ" "BUWVX" "GMEIS" "RVJXU" "FIIDX"
#>  [55] "LEXUS" "JZPQG" "QQHLH" "CDCLI" "ZVNSS" "IMMMW" "CGJJW" "RBWDD" "IXPVR"
#>  [64] "BXGZG" "AZGKM" "CGVUY" "CFOLW" "ICUDD" "QYVHD" "DNMCP" "HPQIZ" "JMHVY"
#>  [73] "NNOFC" "FKAKN" "ANCSV" "GYTQE" "FEHPV" "NFIJG" "JWCVN" "PBJUZ" "ZWAXW"
#>  [82] "XGAIE" "ZTZQN" "XHHGN" "UUEZG" "SEPHM" "EZFPW" "NOTTT" "TCZFY" "PXWLG"
#>  [91] "QNFRJ" "HTMMA" "ILKLS" "BBPBK" "FXUOM" "BKIAJ" "HXLQP" "XVSXL" "BOEOS"
#> [100] "ZKMWK"
#> 
#> attr(,"intersections")$`C:D`
#>  [1] "RLGIV" "VEHVJ" "WFOEH" "DGXDI" "OMFNZ" "PTPEB" "XFISS" "FKSKP" "WNKAY"
#> [10] "LRYYN" "PMITG" "UENSU" "NWEMI"
#> 
#> attr(,"intersections")$`A:B:C`
#>  [1] "PJDAK" "YERZG" "VTDFY" "XNMLQ" "CTXQJ" "ZFQSC" "NLCGE" "CAEPI" "THFVD"
#> [10] "QCQYM" "MGYFU" "ZLSYT" "CQFRD" "DTUNJ" "DEJHX" "JTHVY" "BQPMG" "FLVAN"
#> [19] "SLTBK" "QUIYZ" "RWQRC" "VRCUY" "LOXNJ" "LGEZW" "WMDQQ" "MTFZZ" "FTQQY"
#> [28] "IIMDF" "ZLXCO" "VSVKU" "DQAQJ" "HFGFP" "TQZGP" "RGUOJ" "YYBEN" "GLOQV"
#> [37] "ABUCB" "ASMJV" "QZHIM" "UGTLY" "YZJRC" "PKMTY" "KNMST" "MTLXT" "NTTIS"
#> [46] "PEGKE" "GHFFA" "MRIGY" "IMGXL"
#> 
#> attr(,"intersections")$`A:B:D`
#>  [1] "FFNWH" "IJJRE" "FQPYR" "BLBGS" "NOVTT" "VTTWS" "EETXA" "VLYNP" "REHJC"
#> [10] "REPUE" "CAFSA" "FJIDR" "XBHHA" "RWCFT" "KJQIL" "TDKDI" "SWCZP" "BLQZQ"
#> [19] "GFJIZ" "VKIZK" "DWCPR" "LDVDJ" "XJMPD" "EBETB" "TUFEN" "CQCXI" "AKDQI"
#> [28] "KLUNS" "ARPIW" "XKVWP" "ZFZFA" "QURGV" "XSCCN" "FSQSO" "PIBAW" "BUWLA"
#> [37] "YSRVC" "AQWMD" "ACHTF" "FTIPT" "GWWLE" "VBSCC" "ABEMT" "TOFMJ" "NSRJR"
#> [46] "OKOFY" "SQZXR" "REGHA" "TSZEW" "HWFMB" "QGZJS" "NDVLC" "PESCC" "JUOBX"
#> [55] "KMQCB" "FWEPE" "CVRZH" "TCUQK" "PCSXL" "LKHAF" "QBOOQ" "VKYIE" "TCCXT"
#> [64] "LZQQQ" "RBMMS" "RVXBP"
#> 
#> attr(,"intersections")$`A:C:D`
#> [1] "GTHER" "ZZEFR" "XLRET" "SAJSX" "RGCQE" "OKSVU" "LSJDC" "RLCTQ" "RTOTK"
#> 
#> attr(,"intersections")$`B:C:D`
#>  [1] "BNPBF" "PXEPS" "UOFIO" "BXCSG" "AHJEA" "WJOEZ" "HMWMO" "SSJDC" "LRNQE"
#> [10] "NBFXV" "OQNBT" "OEDTK" "SJIFG" "VJNKZ" "MVTRS" "LIQPH" "CJJQS" "CENUC"
#> [19] "CWFIT" "DQBSD" "XIMOT" "LDXKS" "LPADU" "YCLDK" "KPDFM" "MXKFQ" "OWIGJ"
#> [28] "TBRWY" "URFHN" "NNPXR"
#> 
#> attr(,"intersections")$`A:B:C:D`
#>  [1] "SHIPQ" "LAPDM" "VALVS" "TILQM" "GBZRN" "MSOYN" "TWLSW" "TRVNP" "KIUTG"
#> [10] "NFRZT" "CHHZV" "DCKWJ" "CAWDQ" "TXMHX" "BDLQC" "AECDH" "RHCYI" "JPMVL"
#> [19] "XMLCQ" "KWBFR"
#> 
#> attr(,"class")
#> [1] "venn"

## Show internal binary group labels
venn(input, showSetLogicLabel=TRUE)


## Limit  universe
tmp <- venn(input, universe=geneNames[1:100])

tmp
#>      num A B C D
#> 0000   5 0 0 0 0
#> 0001   2 0 0 0 1
#> 0010   7 0 0 1 0
#> 0011   2 0 0 1 1
#> 0100  23 0 1 0 0
#> 0101  11 0 1 0 1
#> 0110  10 0 1 1 0
#> 0111   1 0 1 1 1
#> 1000   5 1 0 0 0
#> 1001   2 1 0 0 1
#> 1010   1 1 0 1 0
#> 1011   1 1 0 1 1
#> 1100  20 1 1 0 0
#> 1101   3 1 1 0 1
#> 1110   5 1 1 1 0
#> 1111   2 1 1 1 1
#> attr(,"intersections")
#> attr(,"intersections")[[1]]
#> [1] "MYYDN" "WPAXQ" "ZRQEB" "AKWDQ" "SBBBV"
#> 
#> attr(,"intersections")$A
#> [1] "YKRMH" "YLKRA" "IKZUW" "XDIPD" "CPFTV"
#> 
#> attr(,"intersections")$B
#>  [1] "GCXHG" "DEXEN" "CFZHA" "KQNCX" "FVAJV" "OHSRN" "OLPXP" "CENDF" "EUMIW"
#> [10] "SPAIS" "ZBUCK" "TEBUJ" "JFDES" "EZWMZ" "BAZUG" "QMALB" "XCXTQ" "VZQXC"
#> [19] "PKVNI" "HUBNU" "RFYJH" "TUMDX" "AMQCT"
#> 
#> attr(,"intersections")$C
#> [1] "METQI" "XXLXR" "NKIZL" "YGFLL" "NDFRZ" "VMNMC" "TKSPP"
#> 
#> attr(,"intersections")$D
#> [1] "GQANJ" "TDDWL"
#> 
#> attr(,"intersections")$`A:B`
#>  [1] "OPZDH" "XEIML" "VQLTJ" "OINFR" "ILCPG" "QGTDI" "GNADE" "VYNOG" "PNFVW"
#> [10] "ZGZGI" "ZFSGS" "HVVJY" "BSOVT" "DVSVN" "RFYGE" "XLHWL" "JFXKH" "FRWGN"
#> [19] "FSGGO" "DKHEL"
#> 
#> attr(,"intersections")$`A:C`
#> [1] "PHWGC"
#> 
#> attr(,"intersections")$`A:D`
#> [1] "CFUVR" "QQAJB"
#> 
#> attr(,"intersections")$`B:C`
#>  [1] "YMTXG" "VRZAV" "AVAOC" "JOEHG" "KUXDB" "VLFGJ" "VBDEY" "UTTHI" "MRTRS"
#> [10] "JJVZS"
#> 
#> attr(,"intersections")$`B:D`
#>  [1] "JMHVY" "JWCVN" "MKLKL" "ZWAXW" "WPODU" "BOEOS" "NNOFC" "FEHPV" "DJLHU"
#> [10] "ZKMWK" "YYGCY"
#> 
#> attr(,"intersections")$`C:D`
#> [1] "PTPEB" "VEHVJ"
#> 
#> attr(,"intersections")$`A:B:C`
#> [1] "ASMJV" "GLOQV" "HFGFP" "ZLXCO" "QCQYM"
#> 
#> attr(,"intersections")$`A:B:D`
#> [1] "QURGV" "LZQQQ" "AKDQI"
#> 
#> attr(,"intersections")$`A:C:D`
#> [1] "SAJSX"
#> 
#> attr(,"intersections")$`B:C:D`
#> [1] "MXKFQ"
#> 
#> attr(,"intersections")$`A:B:C:D`
#> [1] "BDLQC" "TILQM"
#> 
#> attr(,"class")
#> [1] "venn"

##
## Example to determine which elements are in A and B but not in
## C and D using the 'intersections' attribute.
##
tmp <- venn(input, intersection=TRUE)

isect <- attr(tmp, "intersection")

# Look at all of the subsets
str(isect)
#> List of 15
#>  $ A      : chr [1:56] "RIOLM" "UCCWI" "GZQZM" "UEWSV" ...
#>  $ B      : chr [1:234] "AORUB" "PPYOH" "JIFKL" "HIAQL" ...
#>  $ C      : chr [1:28] "XANPQ" "XXLXR" "LVPBM" "VMNMC" ...
#>  $ D      : chr [1:42] "JXSLX" "GQANJ" "JSKLK" "ESOTI" ...
#>  $ A:B    : chr [1:165] "YMIII" "TGRSB" "EDQGT" "JSWWK" ...
#>  $ A:C    : chr [1:15] "DLXKU" "UHDMH" "WNCBJ" "XFRMN" ...
#>  $ A:D    : chr [1:20] "QQAJB" "QBCLV" "RILGB" "ADVQM" ...
#>  $ B:C    : chr [1:86] "RVVZD" "VLFGJ" "OIEYP" "XCNMA" ...
#>  $ B:D    : chr [1:100] "FXVQY" "SUHYR" "WFMVD" "JMLGP" ...
#>  $ C:D    : chr [1:13] "RLGIV" "VEHVJ" "WFOEH" "DGXDI" ...
#>  $ A:B:C  : chr [1:49] "PJDAK" "YERZG" "VTDFY" "XNMLQ" ...
#>  $ A:B:D  : chr [1:66] "FFNWH" "IJJRE" "FQPYR" "BLBGS" ...
#>  $ A:C:D  : chr [1:9] "GTHER" "ZZEFR" "XLRET" "SAJSX" ...
#>  $ B:C:D  : chr [1:30] "BNPBF" "PXEPS" "UOFIO" "BXCSG" ...
#>  $ A:B:C:D: chr [1:20] "SHIPQ" "LAPDM" "VALVS" "TILQM" ...

# Extract and combine the subsets of interest..
AandB <- unique(c(isect$A, isect$B, isect$'A:B'))

# and look at the results
str(AandB)
#>  chr [1:455] "RIOLM" "UCCWI" "GZQZM" "UEWSV" "WKUPX" "CPFTV" "JCIDI" ...

##
## The full set of elements of each intersection is provided in the
## "interesections" attribute.
##
a<-venn(list(1:5,3:8), show.plot=FALSE)
intersections<-attr(a,"intersections")
print(intersections)
#> $A
#> [1] "1" "2"
#> 
#> $B
#> [1] "6" "7" "8"
#> 
#> $`A:B`
#> [1] "3" "4" "5"
#> 
# $A
# [1] "1" "2"
#
# $B
# [1] "6" "7" "8"
#
# $`A:B`
# [1] "3" "4" "5"