Speaking Stata: Getting by without the by() option: Some graphics for unequal groups Article Swipe
The by() option of the graph command is often used to show groups or subsets of some data in separate panels or facets of a graphical display. If groups are unequal in size, the result may seem awkward or inefficient in use of space. Devices to allow such groups to be shown directly without using a by() option are explained and exemplified for graph dot and its siblings and for graph twoway. New variables to show rank within groups and (if needed) separation of groups are easily constructed. Group summaries such as medians may easily be added. Graph types shown are dot charts, quantile plots, and displays using spikes to show differences between variables. Data examples are for ocean salinity and changes in weight of anorexic girls.
Related Topics
Metadata
- Type
- article
- Language
- en
- Landing Page
- https://doi.org/10.1177/1536867x241297949
- OA Status
- hybrid
- Cited By
- 1
- References
- 8
- Related Works
- 10
- OpenAlex ID
- https://openalex.org/W4405761511
All OpenAlex metadata
Raw OpenAlex JSON
- OpenAlex ID
-
https://openalex.org/W4405761511Canonical identifier for this work in OpenAlex
- DOI
-
https://doi.org/10.1177/1536867x241297949Digital Object Identifier
- Title
-
Speaking Stata: Getting by without the by() option: Some graphics for unequal groupsWork title
- Type
-
articleOpenAlex work type
- Language
-
enPrimary language
- Publication year
-
2024Year of publication
- Publication date
-
2024-12-01Full publication date if available
- Authors
-
Nicholas J. CoxList of authors in order
- Landing page
-
https://doi.org/10.1177/1536867x241297949Publisher landing page
- Open access
-
YesWhether a free full text is available
- OA status
-
hybridOpen access status per OpenAlex
- OA URL
-
https://doi.org/10.1177/1536867x241297949Direct OA link when available
- Concepts
-
Graphics, Computer science, Computer graphics (images)Top concepts (fields/topics) attached by OpenAlex
- Cited by
-
1Total citation count in OpenAlex
- Citations by year (recent)
-
2025: 1Per-year citation counts (last 5 years)
- References (count)
-
8Number of works referenced by this work
- Related works (count)
-
10Other works algorithmically related by OpenAlex
Full payload
| id | https://openalex.org/W4405761511 |
|---|---|
| doi | https://doi.org/10.1177/1536867x241297949 |
| ids.doi | https://doi.org/10.1177/1536867x241297949 |
| ids.openalex | https://openalex.org/W4405761511 |
| fwci | 1.53290046 |
| type | article |
| title | Speaking Stata: Getting by without the by() option: Some graphics for unequal groups |
| biblio.issue | 4 |
| biblio.volume | 24 |
| biblio.last_page | 776 |
| biblio.first_page | 766 |
| topics[0].id | https://openalex.org/T13500 |
| topics[0].field.id | https://openalex.org/fields/26 |
| topics[0].field.display_name | Mathematics |
| topics[0].score | 0.9973000288009644 |
| topics[0].domain.id | https://openalex.org/domains/3 |
| topics[0].domain.display_name | Physical Sciences |
| topics[0].subfield.id | https://openalex.org/subfields/2613 |
| topics[0].subfield.display_name | Statistics and Probability |
| topics[0].display_name | Probability and Statistical Research |
| topics[1].id | https://openalex.org/T14112 |
| topics[1].field.id | https://openalex.org/fields/20 |
| topics[1].field.display_name | Economics, Econometrics and Finance |
| topics[1].score | 0.9314000010490417 |
| topics[1].domain.id | https://openalex.org/domains/2 |
| topics[1].domain.display_name | Social Sciences |
| topics[1].subfield.id | https://openalex.org/subfields/2000 |
| topics[1].subfield.display_name | General Economics, Econometrics and Finance |
| topics[1].display_name | Economic, financial, and policy analysis |
| topics[2].id | https://openalex.org/T11875 |
| topics[2].field.id | https://openalex.org/fields/26 |
| topics[2].field.display_name | Mathematics |
| topics[2].score | 0.9041000008583069 |
| topics[2].domain.id | https://openalex.org/domains/3 |
| topics[2].domain.display_name | Physical Sciences |
| topics[2].subfield.id | https://openalex.org/subfields/2613 |
| topics[2].subfield.display_name | Statistics and Probability |
| topics[2].display_name | Statistics Education and Methodologies |
| is_xpac | False |
| apc_list | |
| apc_paid | |
| concepts[0].id | https://openalex.org/C21442007 |
| concepts[0].level | 2 |
| concepts[0].score | 0.6355973482131958 |
| concepts[0].wikidata | https://www.wikidata.org/wiki/Q1027879 |
| concepts[0].display_name | Graphics |
| concepts[1].id | https://openalex.org/C41008148 |
| concepts[1].level | 0 |
| concepts[1].score | 0.4397924542427063 |
| concepts[1].wikidata | https://www.wikidata.org/wiki/Q21198 |
| concepts[1].display_name | Computer science |
| concepts[2].id | https://openalex.org/C121684516 |
| concepts[2].level | 1 |
| concepts[2].score | 0.3682588040828705 |
| concepts[2].wikidata | https://www.wikidata.org/wiki/Q7600677 |
| concepts[2].display_name | Computer graphics (images) |
| keywords[0].id | https://openalex.org/keywords/graphics |
| keywords[0].score | 0.6355973482131958 |
| keywords[0].display_name | Graphics |
| keywords[1].id | https://openalex.org/keywords/computer-science |
| keywords[1].score | 0.4397924542427063 |
| keywords[1].display_name | Computer science |
| keywords[2].id | https://openalex.org/keywords/computer-graphics |
| keywords[2].score | 0.3682588040828705 |
| keywords[2].display_name | Computer graphics (images) |
| language | en |
| locations[0].id | doi:10.1177/1536867x241297949 |
| locations[0].is_oa | True |
| locations[0].source.id | https://openalex.org/S88220793 |
| locations[0].source.issn | 1536-867X, 1536-8734 |
| locations[0].source.type | journal |
| locations[0].source.is_oa | False |
| locations[0].source.issn_l | 1536-867X |
| locations[0].source.is_core | True |
| locations[0].source.is_in_doaj | False |
| locations[0].source.display_name | The Stata Journal Promoting communications on statistics and Stata |
| locations[0].source.host_organization | https://openalex.org/P4310320017 |
| locations[0].source.host_organization_name | SAGE Publishing |
| locations[0].source.host_organization_lineage | https://openalex.org/P4310320017 |
| locations[0].source.host_organization_lineage_names | SAGE Publishing |
| locations[0].license | cc-by |
| locations[0].pdf_url | |
| locations[0].version | publishedVersion |
| locations[0].raw_type | journal-article |
| locations[0].license_id | https://openalex.org/licenses/cc-by |
| locations[0].is_accepted | True |
| locations[0].is_published | True |
| locations[0].raw_source_name | The Stata Journal: Promoting communications on statistics and Stata |
| locations[0].landing_page_url | https://doi.org/10.1177/1536867x241297949 |
| locations[1].id | pmh:oai:durham-repository.worktribe.com:3492366 |
| locations[1].is_oa | True |
| locations[1].source | |
| locations[1].license | cc-by |
| locations[1].pdf_url | |
| locations[1].version | publishedVersion |
| locations[1].raw_type | publishedVersion |
| locations[1].license_id | https://openalex.org/licenses/cc-by |
| locations[1].is_accepted | True |
| locations[1].is_published | True |
| locations[1].raw_source_name | |
| locations[1].landing_page_url | https://doi.org/10.1177/1536867X241297949 |
| indexed_in | crossref |
| authorships[0].author.id | https://openalex.org/A5033536093 |
| authorships[0].author.orcid | https://orcid.org/0000-0002-7815-6115 |
| authorships[0].author.display_name | Nicholas J. Cox |
| authorships[0].countries | GB |
| authorships[0].affiliations[0].institution_ids | https://openalex.org/I190082696 |
| authorships[0].affiliations[0].raw_affiliation_string | Department of Geography, Durham University, Durham, UK, |
| authorships[0].institutions[0].id | https://openalex.org/I190082696 |
| authorships[0].institutions[0].ror | https://ror.org/01v29qb04 |
| authorships[0].institutions[0].type | education |
| authorships[0].institutions[0].lineage | https://openalex.org/I190082696 |
| authorships[0].institutions[0].country_code | GB |
| authorships[0].institutions[0].display_name | Durham University |
| authorships[0].author_position | first |
| authorships[0].raw_author_name | Nicholas J. Cox |
| authorships[0].is_corresponding | True |
| authorships[0].raw_affiliation_strings | Department of Geography, Durham University, Durham, UK, |
| has_content.pdf | False |
| has_content.grobid_xml | False |
| is_paratext | False |
| open_access.is_oa | True |
| open_access.oa_url | https://doi.org/10.1177/1536867x241297949 |
| open_access.oa_status | hybrid |
| open_access.any_repository_has_fulltext | False |
| created_date | 2025-10-10T00:00:00 |
| display_name | Speaking Stata: Getting by without the by() option: Some graphics for unequal groups |
| has_fulltext | False |
| is_retracted | False |
| updated_date | 2025-11-06T03:46:38.306776 |
| primary_topic.id | https://openalex.org/T13500 |
| primary_topic.field.id | https://openalex.org/fields/26 |
| primary_topic.field.display_name | Mathematics |
| primary_topic.score | 0.9973000288009644 |
| primary_topic.domain.id | https://openalex.org/domains/3 |
| primary_topic.domain.display_name | Physical Sciences |
| primary_topic.subfield.id | https://openalex.org/subfields/2613 |
| primary_topic.subfield.display_name | Statistics and Probability |
| primary_topic.display_name | Probability and Statistical Research |
| related_works | https://openalex.org/W4234077872, https://openalex.org/W2066703180, https://openalex.org/W856338413, https://openalex.org/W82290398, https://openalex.org/W2381296300, https://openalex.org/W74297911, https://openalex.org/W4245723629, https://openalex.org/W86491366, https://openalex.org/W2393062505, https://openalex.org/W2336873076 |
| cited_by_count | 1 |
| counts_by_year[0].year | 2025 |
| counts_by_year[0].cited_by_count | 1 |
| locations_count | 2 |
| best_oa_location.id | doi:10.1177/1536867x241297949 |
| best_oa_location.is_oa | True |
| best_oa_location.source.id | https://openalex.org/S88220793 |
| best_oa_location.source.issn | 1536-867X, 1536-8734 |
| best_oa_location.source.type | journal |
| best_oa_location.source.is_oa | False |
| best_oa_location.source.issn_l | 1536-867X |
| best_oa_location.source.is_core | True |
| best_oa_location.source.is_in_doaj | False |
| best_oa_location.source.display_name | The Stata Journal Promoting communications on statistics and Stata |
| best_oa_location.source.host_organization | https://openalex.org/P4310320017 |
| best_oa_location.source.host_organization_name | SAGE Publishing |
| best_oa_location.source.host_organization_lineage | https://openalex.org/P4310320017 |
| best_oa_location.source.host_organization_lineage_names | SAGE Publishing |
| best_oa_location.license | cc-by |
| best_oa_location.pdf_url | |
| best_oa_location.version | publishedVersion |
| best_oa_location.raw_type | journal-article |
| best_oa_location.license_id | https://openalex.org/licenses/cc-by |
| best_oa_location.is_accepted | True |
| best_oa_location.is_published | True |
| best_oa_location.raw_source_name | The Stata Journal: Promoting communications on statistics and Stata |
| best_oa_location.landing_page_url | https://doi.org/10.1177/1536867x241297949 |
| primary_location.id | doi:10.1177/1536867x241297949 |
| primary_location.is_oa | True |
| primary_location.source.id | https://openalex.org/S88220793 |
| primary_location.source.issn | 1536-867X, 1536-8734 |
| primary_location.source.type | journal |
| primary_location.source.is_oa | False |
| primary_location.source.issn_l | 1536-867X |
| primary_location.source.is_core | True |
| primary_location.source.is_in_doaj | False |
| primary_location.source.display_name | The Stata Journal Promoting communications on statistics and Stata |
| primary_location.source.host_organization | https://openalex.org/P4310320017 |
| primary_location.source.host_organization_name | SAGE Publishing |
| primary_location.source.host_organization_lineage | https://openalex.org/P4310320017 |
| primary_location.source.host_organization_lineage_names | SAGE Publishing |
| primary_location.license | cc-by |
| primary_location.pdf_url | |
| primary_location.version | publishedVersion |
| primary_location.raw_type | journal-article |
| primary_location.license_id | https://openalex.org/licenses/cc-by |
| primary_location.is_accepted | True |
| primary_location.is_published | True |
| primary_location.raw_source_name | The Stata Journal: Promoting communications on statistics and Stata |
| primary_location.landing_page_url | https://doi.org/10.1177/1536867x241297949 |
| publication_date | 2024-12-01 |
| publication_year | 2024 |
| referenced_works | https://openalex.org/W1515525826, https://openalex.org/W4233949018, https://openalex.org/W2115711340, https://openalex.org/W3116774100, https://openalex.org/W4402392193, https://openalex.org/W4230653117, https://openalex.org/W2493972626, https://openalex.org/W617185134 |
| referenced_works_count | 8 |
| abstract_inverted_index.a | 24, 55 |
| abstract_inverted_index.If | 27 |
| abstract_inverted_index.as | 91 |
| abstract_inverted_index.be | 50, 95 |
| abstract_inverted_index.in | 18, 31, 40, 122 |
| abstract_inverted_index.is | 7 |
| abstract_inverted_index.of | 3, 15, 23, 42, 83, 124 |
| abstract_inverted_index.or | 13, 21, 38 |
| abstract_inverted_index.to | 10, 45, 49, 74, 109 |
| abstract_inverted_index.(if | 80 |
| abstract_inverted_index.New | 72 |
| abstract_inverted_index.The | 0 |
| abstract_inverted_index.and | 60, 65, 68, 79, 105, 120 |
| abstract_inverted_index.are | 29, 58, 85, 100, 116 |
| abstract_inverted_index.dot | 64, 101 |
| abstract_inverted_index.for | 62, 69, 117 |
| abstract_inverted_index.its | 66 |
| abstract_inverted_index.may | 35, 93 |
| abstract_inverted_index.the | 4, 33 |
| abstract_inverted_index.use | 41 |
| abstract_inverted_index.Data | 114 |
| abstract_inverted_index.by() | 1, 56 |
| abstract_inverted_index.data | 17 |
| abstract_inverted_index.rank | 76 |
| abstract_inverted_index.seem | 36 |
| abstract_inverted_index.show | 11, 75, 110 |
| abstract_inverted_index.some | 16 |
| abstract_inverted_index.such | 47, 90 |
| abstract_inverted_index.used | 9 |
| abstract_inverted_index.Graph | 97 |
| abstract_inverted_index.Group | 88 |
| abstract_inverted_index.allow | 46 |
| abstract_inverted_index.graph | 5, 63, 70 |
| abstract_inverted_index.ocean | 118 |
| abstract_inverted_index.often | 8 |
| abstract_inverted_index.shown | 51, 99 |
| abstract_inverted_index.size, | 32 |
| abstract_inverted_index.types | 98 |
| abstract_inverted_index.using | 54, 107 |
| abstract_inverted_index.added. | 96 |
| abstract_inverted_index.easily | 86, 94 |
| abstract_inverted_index.facets | 22 |
| abstract_inverted_index.girls. | 126 |
| abstract_inverted_index.groups | 12, 28, 48, 78, 84 |
| abstract_inverted_index.option | 2, 57 |
| abstract_inverted_index.panels | 20 |
| abstract_inverted_index.plots, | 104 |
| abstract_inverted_index.result | 34 |
| abstract_inverted_index.space. | 43 |
| abstract_inverted_index.spikes | 108 |
| abstract_inverted_index.weight | 123 |
| abstract_inverted_index.within | 77 |
| abstract_inverted_index.Devices | 44 |
| abstract_inverted_index.awkward | 37 |
| abstract_inverted_index.between | 112 |
| abstract_inverted_index.changes | 121 |
| abstract_inverted_index.charts, | 102 |
| abstract_inverted_index.command | 6 |
| abstract_inverted_index.medians | 92 |
| abstract_inverted_index.needed) | 81 |
| abstract_inverted_index.subsets | 14 |
| abstract_inverted_index.twoway. | 71 |
| abstract_inverted_index.unequal | 30 |
| abstract_inverted_index.without | 53 |
| abstract_inverted_index.anorexic | 125 |
| abstract_inverted_index.directly | 52 |
| abstract_inverted_index.display. | 26 |
| abstract_inverted_index.displays | 106 |
| abstract_inverted_index.examples | 115 |
| abstract_inverted_index.quantile | 103 |
| abstract_inverted_index.salinity | 119 |
| abstract_inverted_index.separate | 19 |
| abstract_inverted_index.siblings | 67 |
| abstract_inverted_index.explained | 59 |
| abstract_inverted_index.graphical | 25 |
| abstract_inverted_index.summaries | 89 |
| abstract_inverted_index.variables | 73 |
| abstract_inverted_index.separation | 82 |
| abstract_inverted_index.variables. | 113 |
| abstract_inverted_index.differences | 111 |
| abstract_inverted_index.exemplified | 61 |
| abstract_inverted_index.inefficient | 39 |
| abstract_inverted_index.constructed. | 87 |
| cited_by_percentile_year.max | 95 |
| cited_by_percentile_year.min | 91 |
| corresponding_author_ids | https://openalex.org/A5033536093 |
| countries_distinct_count | 1 |
| institutions_distinct_count | 1 |
| corresponding_institution_ids | https://openalex.org/I190082696 |
| citation_normalized_percentile.value | 0.8083914 |
| citation_normalized_percentile.is_in_top_1_percent | False |
| citation_normalized_percentile.is_in_top_10_percent | False |