Dr Nicholas Cox n.j.cox@durham.ac.uk
Assistant Professor
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.
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 |
Published Journal Article
(449 Kb)
PDF
Publisher Licence URL
http://creativecommons.org/licenses/by-nc/4.0/
Stata tip 151: Puzzling out some logical operators
(2023)
Journal Article
Speaking Stata: Automating axis labels: Nice numbers and transformed scales
(2022)
Journal Article
Stata tip 148: Searching for words within strings
(2022)
Journal Article
Speaking Stata: The largest five - A tale of tail values
(2022)
Journal Article
Stata tip 145: Numbering weeks within months
(2022)
Journal Article
About Durham Research Online (DRO)
Administrator e-mail: dro.admin@durham.ac.uk
This application uses the following open-source libraries:
Apache License Version 2.0 (http://www.apache.org/licenses/)
Apache License Version 2.0 (http://www.apache.org/licenses/)
SIL OFL 1.1 (http://scripts.sil.org/OFL)
MIT License (http://opensource.org/licenses/mit-license.html)
CC BY 3.0 ( http://creativecommons.org/licenses/by/3.0/)
Powered by Worktribe © 2025
Advanced Search