UCL Discovery Stage
UCL home » Library Services » Electronic resources » UCL Discovery Stage

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

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. Green open access

[thumbnail of 2024 - Cox - the joy of sets - stata j.pdf]
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
Downloads since deposit
1,444Downloads
Download activity - last month
Download activity - last 12 months
Downloads by country - last 12 months

Archive Staff Only

View Item View Item