Dot-and-Whisker Plots of Regression Results
Overview
Create quick and easy dot-and-whisker plots of regression results. It takes as input either (1) a coefficient table in standard form or (2) one (or a list of) fitted model objects (of any type that has methods implemented in the 'parameters' package). It returns 'ggplot' objects that can be further customized using tools from the 'ggplot2' package. The package also includes helper functions for tasks such as rescaling coefficients or relabeling predictor variables. See more methodological discussion of the visualization and data management methods used in this package in Kastellec and Leoni (2007) doi:10.1017/S1537592707072209 and Gelman (2008) doi:10.1002/sim.3107.
small_multiple()now lets users customise the order of models (along the x-axis) and submodels (mapped to colour) via themodel_orderandsubmodel_orderarguments, matching the behaviour ofdwplot()(Issue #108). Added tests covering this behaviour.- Fixed the documented defaults for
small_multiple()'sdodge_size(.4) andby_2sd(FALSE) arguments, and removed dead point-positioning code. - Replaced the now-unmaintained
ggstancedependency with nativeggplot2horizontal geoms (geom_linerange(orientation = "y")+position_dodge()). This removes thesize-aesthetic deprecation warning indwplot()(Issue #120) without changing any plot output. - Replaced the deprecated
aes_string()(inadd_brackets()) andis.ggplot()(inrelabel_predictors()) calls to be compatible withggplot24.0.
Show all changes in 0.8.6Hide the rest of the changes in 0.8.6
- Internal cleanup: de-duplicated
dw_tidy()and the layer-building code indwplot(), removed a fragile join and dead code inadd_brackets(), and dropped unused/no-op code. No user-facing behavior changes.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 7
- Examples that run
- 100%6 run in a plain check
- Exported functions with examples
- 86%
- Documented parameters
- 96%
- Return-value docs
- 100%
- Help pages citing references
- 43%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 110
- Median days to close, 50 most recently updated closed PRs
- 0
Forks over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/fsolt/dotwhisker on 2026-10-21.
GitHub Pages site last deployed 2026-06-24
Show all practicesHide 2 practices
This repository shows signs of AI coding tools.
- Claude Codefirst seen on or before 2026-06-23Commits: some crediting it in the message, count not recorded
Dependencies
Installing dotwhisker adds 40 packages (17 with compiled code, 44 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.
- insight through marginaleffectsfix by Nov 14
Code & Tests
People & History
Previously maintained by Frederick Solt (0.4.1 to 0.5.0) and Yue Hu (0.1.0.1 to 0.4.0).
Pick two releases to compare their code metrics.
- 0.8.6Latest
- RR 4.6.0 released · 2026-04-24
- 0.8.42025-05-06 · diff ↗
- RR 4.5.0 released · 2025-04-11
- unarchivedReturned to CRAN2024-09-27
- 0.8.32024-09-27 · diff ↗
- archivedRemoved from CRAN2024-09-14issues were not corrected in time
- unarchivedReturned to CRAN2024-06-07
- 0.8.22024-06-07 · diff ↗
- RR 4.4.0 released · 2024-04-24
- archivedRemoved from CRAN2024-04-12requires archived package 'prediction'
- 0.8.12024-03-07 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 0.7.42021-09-02 · diff ↗
- 0.7.32021-08-22 · diff ↗
Show 25 earlier eventsHide 25 earlier events
- 0.7.02021-07-17 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 0.6.0
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 0.5.02018-06-27 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 0.4.12018-04-16 · diff ↗
- 0.4.0
- 0.3.02017-06-28 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.2.62017-04-20 · diff ↗
- 0.2.52017-04-06 · diff ↗
- 0.2.32016-11-14 · diff ↗
- 0.2.22016-07-13 · diff ↗
- 0.2.12016-07-11 · diff ↗
- RR 3.3.0 released · 2016-05-03
- 0.2.0.52016-03-04 · diff ↗
- 0.2.0.42016-02-15 · diff ↗
- 0.2.0.32016-01-04 · diff ↗
- 0.2.0.22015-12-23 · diff ↗
- 0.2.0.12015-10-06 · diff ↗
- 0.2.0.02015-08-30 · diff ↗ ·
added 4 exports
relabel_predictors, relabel_y_axis, secret_weapon, small_multiple - 0.1.0.12015-07-28
- RR 3.2.0 released · 2015-04-16
Package metadata
- First published
- 2015-07-28
- Total releases
- 25 / 11 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.2.0
- Download size
- 255 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("dotwhisker")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.