Cox, Nicholas J;
Morris, Tim P;
(2024)
Speaking Stata: The joy of sets: Graphical alternatives to Euler and Venn diagrams.
The Stata Journal: Promoting communications on statistics and Stata
, 24
(2)
pp. 329-361.
10.1177/1536867x241258010.
Preview |
PDF
2024 - Cox - the joy of sets - stata j.pdf - Published Version Download (448kB) | Preview |
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.
Type: | Article |
---|---|
Title: | Speaking Stata: The joy of sets: Graphical alternatives to Euler and Venn diagrams |
Open access status: | An open access version is available from UCL Discovery |
DOI: | 10.1177/1536867x241258010 |
Publisher version: | http://dx.doi.org/10.1177/1536867x241258010 |
Language: | English |
Additional information: | This article is distributed under the terms of the Creative Commons Attribution-NonCommercial 4.0 License (https://creativecommons.org/licenses/by-nc/4.0/) which permits non-commercial use, reproduction and distribution of the work without further permission provided the original work is attributed as specified on the SAGE and Open Access pages (https://us.sagepub.com/en-us/nam/open-access-at-sage). |
Keywords: | gr0095, upsetplot, vennbar, bar charts, Venn diagrams, Euler diagrams, UpSetPlots, set membership, indicator variables, binary variables, graphics |
UCL classification: | UCL UCL > Provost and Vice Provost Offices > School of Life and Medical Sciences UCL > Provost and Vice Provost Offices > School of Life and Medical Sciences > Faculty of Population Health Sciences > Inst of Clinical Trials and Methodology UCL > Provost and Vice Provost Offices > School of Life and Medical Sciences > Faculty of Population Health Sciences > Inst of Clinical Trials and Methodology > MRC Clinical Trials Unit at UCL |
URI: | https://discovery-pp.ucl.ac.uk/id/eprint/10195255 |
Archive Staff Only
View Item |