Skip to main content

Research Repository

Advanced Search

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

Cox, Nicholas J.; Morris, Tim P.

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


Authors

Tim P. Morris



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.

Citation

Cox, N. J., & Morris, T. P. (2024). Speaking Stata: The joy of sets: Graphical alternatives to Euler and Venn diagrams. The Stata Journal, 24(2), 329-361. https://doi.org/10.1177/1536867x241258010

Journal Article Type Article
Acceptance Date May 14, 2024
Online Publication Date Jul 25, 2024
Publication Date 2024-06
Deposit Date Aug 16, 2024
Publicly Available Date Aug 16, 2024
Journal The Stata Journal: Promoting communications on statistics and Stata
Print ISSN 1536-867X
Electronic ISSN 1536-8734
Publisher SAGE Publications
Peer Reviewed Peer Reviewed
Volume 24
Issue 2
Pages 329-361
DOI https://doi.org/10.1177/1536867x241258010
Public URL https://durham-repository.worktribe.com/output/2756925

Files





You might also like



Downloadable Citations