{"title":"说说 Stata:集合的乐趣:欧拉图和维恩图的图形替代方案","authors":"Nicholas J. Cox, Tim P. Morris","doi":"10.1177/1536867x241258010","DOIUrl":null,"url":null,"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.","PeriodicalId":501101,"journal":{"name":"The Stata Journal: Promoting communications on statistics and Stata","volume":"17 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Speaking Stata: The joy of sets: Graphical alternatives to Euler and Venn diagrams\",\"authors\":\"Nicholas J. Cox, Tim P. Morris\",\"doi\":\"10.1177/1536867x241258010\",\"DOIUrl\":null,\"url\":null,\"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.\",\"PeriodicalId\":501101,\"journal\":{\"name\":\"The Stata Journal: Promoting communications on statistics and Stata\",\"volume\":\"17 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-25\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"The Stata Journal: Promoting communications on statistics and Stata\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1177/1536867x241258010\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"The Stata Journal: Promoting communications on statistics and Stata","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1177/1536867x241258010","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
摘要
重叠或相交集合的成员资格可以记录在一束(0,1)指标变量中。注释欧拉图或维恩图可用于以图形方式显示如此定义的子集的频率,但除了少数几个集合外,这种图很难绘制和有效使用。本专栏将介绍两种新的图形替代命令:镦粗图(supsetplot)和维恩图(vennbar)。每条命令默认都生成条形图,但也可以重新铸造成不同的图形形式。新命令之间的差异反映了 Stata 中双向命令与其他图形命令之间的区别。它们还为图表设计提供了一定的灵活性,以适应不同的口味和情况。讨论包括许多历史细节和参考资料。
Speaking Stata: The joy of sets: Graphical alternatives to Euler and Venn diagrams
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.