EconPapers    
Economics at your fingertips  
 

The joy of sets: Graphical alternatives to Euler and Venn diagrams

Nicholas Cox and Tim P. Morris
Additional contact information
Tim P. Morris: MRC Clinical Trials Unit, UCL

UK Stata Conference 2023 from Stata Users Group

Abstract: Given several binary (indicator) variables and intersecting sets, a Euler or Venn diagram may spring to mind, but even with only a few sets the collective pattern becomes hard to draw and harder to think about easily. In genomics and elsewhere so-called upsetplots (specialized bar charts for the purpose) have become popular recently as alternatives. This presentation introduces an implementation {\tt upsetplot}, a complementary implementation {\tt vennbar}, and associated minor extras and utilities. Applications include examination of the structure of missing data and of the co-occurrence of medical symptoms or any other individual binary states. These new commands are compared with previous graphical commands, both official and community-contributed, and both frequently used and seemingly little known. Secondary themes include: data structures needed to produce and store results; what works better with {\tt graph bar} and what works better with {\tt twoway bar}; and the serendipity of encounters at Stata users' meetings.

Date: 2023-09-10
New Economics Papers: this item is included in nep-ger
References: Add references at CitEc
Citations:

Downloads: (external link)
http://repec.org/lsug2023/Stata_UK23__Cox.pptx

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:lsug23:22

Access Statistics for this paper

More papers in UK Stata Conference 2023 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-29
Handle: RePEc:boc:lsug23:22