Speaking Stata: The joy of sets: Graphical alternatives to Euler and Venn diagrams
Nicholas Cox and
Tim P. Morris ()
Additional contact information
Tim P. Morris: University College London
Stata Journal, 2024, vol. 24, issue 2, 329-361
Abstract:
Membership of overlapping or intersecting sets may be recorded in a bundle of (0,1) indicator variables. Annotated Euler or Venn diagrams may be used to show graphically the frequencies of subsets so defined, but beyond just a few sets such diagrams can be hard to draw and use effectively. This column presents two new commands for graphical alternatives: upsetplot and vennbar. Each command produces a bar chart by default, but there is scope to recast to different graphical forms. The differences between the new commands reflect the divide in Stata between twoway commands and other graph commands. They also provide some flexibility in graph design to match tastes and circumstances. The discussion includes many historical details and references.
Keywords: upsetplot; vennbar; bar charts; Venn diagrams; Euler diagrams; UpSetPlots; set membership; indicator variables; binary variables; graphics (search for similar items in EconPapers)
Date: 2024
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj24-2/gr0095/
References: Add references at CitEc
Citations:
Downloads: (external link)
http://www.stata-journal.com/article.html?article=gr0095 link to article purchase
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:tsj:stataj:v:24:y:2024:i:2:p:329-361
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
DOI: 10.1177/1536867X241258010
Access Statistics for this article
Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins
More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().