'ggplot2' Based Plots with Statistical Details
Overview
Extension of 'ggplot2', 'ggstatsplot' creates graphics with details from statistical tests included in the plots themselves. It provides an easier syntax to generate information-rich plots for statistical analysis of continuous (violin plots, scatterplots, histograms, dot plots, dot-and-whisker plots) or categorical (pie and bar charts) data. Currently, it supports the most common types of statistical approaches and tests: parametric, nonparametric, robust, and Bayesian versions of t-test/ANOVA, correlation analyses, contingency table analysis, meta-analysis, and regression analyses. References: Patil (2021) doi:10.21105/joss.03167.
BUG FIXES
ggwithinstats()now drops subjects with missing values in any condition from the plot as well whensubject.idis supplied, so the plotted data, centrality labels, and sample size labels match the statistical results (previously, partially observed subjects were still plotted).ggwithinstats()now gives an informative error when asubject.idvalue appears more than once within a level ofx, instead of silently dropping the subtitle or failing deep inside the statistical tests.ggwithinstats()withtype = "robust"now reports the correct Algina-Keselman-Penfield effect size and confidence interval in the subtitle (e.g., 0.32 instead of 0.66 forbugs_long). This fix comes from{statsExpressions}, which previously treated its internal row identifier as an extra condition.
Show all changes in 1.1.3Hide the rest of the changes in 1.1.3
ggcoefstats()no longer errors withonly.significant = TRUEwhen no term is significant; the plot is drawn without stats labels instead.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-26
- NOTE11 OK, 2 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-03-10
Documentation
- Help pages
- 26 (2 internal)includes a package overview page
- Examples that run
- 100%25 run in a plain check (16 of them under a condition)
- Exported functions with examples
- 100%
- Documented parameters
- 89%
- Return-value docs
- 100%
- Help pages citing references
- 4%
Downloads
Repository
- PRs merged (all time)
- 90%
- Median days to close, 50 most recently updated closed issues
- 1,390
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
14 development-tooling and community-health practices detected across 9 families in the upstream repository
Checks run against github.com/indrajeetpatil/ggstatsplot on 2026-10-11.
GitHub Pages site last deployed 2026-10-11
pkgdown site last built 2026-10-11, before release 1.1.3 (2026-10-17)
Show all practicesHide 5 practices
This repository shows signs of AI coding tools.
- GitHub Copilotfirst seen 2025-08-20Seen in the repository: .github/promptsPull request: opened by its own accountCommits: 4 by its own account · at least 3 crediting it in the message
- Claude Codefirst seen 2025-12-09Named in .Rbuildignore: .claudeNamed in .gitignore: .claudePull request it wrote: opened by a project memberCommits: at least 3 crediting it in the message
- Claude Opus 4.51 commit · Feb 2026
Dependencies
Installing ggstatsplot adds 106 packages (50 with compiled code, 98 MB of source tarballs). Heaviest: stringi 11 MB, BayesFactor 6.1 MB, ggplot2 6.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.1.3Latest2026-10-17 · current release · diff ↗ ·
listed once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-17 17:40 UTC, so it stayed less than the time between readings. - 1.1.22026-10-09 · diff ↗
- 1.1.12026-08-22 · diff ↗
- 1.1.02026-08-22 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 1.0.0
- 0.13.62026-04-06 · diff ↗
- 0.13.52026-02-06 · diff ↗
- 0.13.42025-12-09 · diff ↗
- 0.13.32025-10-05 · diff ↗
- 0.13.22025-09-11 · diff ↗
- 0.13.12025-05-10 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 0.13.02024-12-04 · diff ↗
- 0.12.52024-11-01 · diff ↗
- 0.12.42024-07-06 · diff ↗
Show 51 earlier eventsHide 51 earlier events
- RR 4.4.0 released · 2024-04-24
- 0.12.32024-04-06 · diff ↗
- 0.12.22024-01-14 · diff ↗
- 0.12.12023-09-21 · diff ↗
- 0.12.02023-08-07 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.11.12023-04-14 · diff ↗
- 0.11.02023-02-15 · diff ↗
- 0.10.0
- 0.9.52022-10-16 · diff ↗ ·
removed 11 exports
!!!, !!, %$%, %<-%, %<>%, %|%, %||%, :=, as_tibble, exec, tibble - 0.9.42022-08-11 · diff ↗
- 0.9.32022-05-27 · diff ↗
- 0.9.2
- RR 4.2.0 released · 2022-04-22
- 0.9.12022-01-15 · diff ↗
- 0.9.0
- 0.8.0
- RR 4.1.0 released · 2021-05-18
- 0.7.22021-04-12 · diff ↗
- 0.7.1
- 0.7.0
- 0.6.82021-01-19 · diff ↗
- 0.6.6
- 0.6.5
- 0.6.1
- 0.6.0
- 0.5.0
- RR 4.0.0 released · 2020-04-24
- 0.4.0
- 0.3.12020-03-07 · diff ↗
- 0.3.02020-03-01 · diff ↗ ·
removed 1 export
ggplot_converteradded 5 exports
%<-%, augment, combine_plots2, glance, tidy - 0.2.02020-02-03 · diff ↗ ·
removed 6 exports
bf_meta_message, ggwithinstats_switch, lm_effsize_ci, subtitle_meta_ggcoefstats, subtitle_meta_parametric, theme_mprladded 1 export
pairwise_comparisons - 0.1.4
- 0.1.32019-11-21 · diff ↗ ·
removed 5 exports
`%$%`, `%<>%`, `%>%`, `%|%`, `%||%`added 5 exports
%$%, %<>%, %>%, %|%, %||% - 0.1.22019-09-17 · diff ↗ ·
removed 5 exports
%$%, %<>%, %>%, %|%, %||%added 5 exports
`%$%`, `%<>%`, `%>%`, `%|%`, `%||%` - 0.1.12019-08-30 · diff ↗ ·
removed 23 exports
bf_caption_maker, bf_contingency_tab, bf_corr_test, bf_extractor, bf_one_sample_ttest, bf_oneway_anova, bf_ttest, bf_two_sample_ttest, pairwise_p, subtitle_anova_bayes, subtitle_anova_nonparametric, subtitle_anova_parametric, subtitle_anova_robust, subtitle_contingency_tab, subtitle_ggscatterstats, subtitle_mann_nonparametric, subtitle_onesample_proptest, subtitle_t_bayes, subtitle_t_nonparametric, subtitle_t_onesample, subtitle_t_parametric, subtitle_t_robust, subtitle_templateadded 4 exports
%|%, %||%, as_tibble, subtitle_meta_parametric - 0.0.12
- 0.0.112019-06-14 · diff ↗ ·
removed 2 exports
subtitle_friedman_nonparametric, subtitle_kw_nonparametricadded 4 exports
bf_meta_message, ggwithinstats, grouped_ggwithinstats, subtitle_anova_nonparametric - RR 3.6.0 released · 2019-04-26
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.72018-12-08 · diff ↗ ·
removed 10 exports
subtitle_contigency_tab, subtitle_ggbetween_anova_parametric, subtitle_ggbetween_kw_nonparametric, subtitle_ggbetween_mann_nonparametric, subtitle_ggbetween_rob_anova, subtitle_ggbetween_t_bayes, subtitle_ggbetween_t_parametric, subtitle_ggbetween_t_rob, subtitle_onesample, untableadded 27 exports
%$%, %<>%, bf_contingency_tab, bf_corr_test, bf_extractor, bf_one_sample_ttest, bf_oneway_anova, bf_two_sample_ttest, ggdotplotstats, grouped_ggdotplotstats, lm_effsize_ci, pairwise_p, set_cwd, subtitle_anova_bayes, subtitle_anova_parametric, subtitle_anova_robust, subtitle_contingency_tab, subtitle_friedman_nonparametric, subtitle_kw_nonparametric, subtitle_mann_nonparametric, subtitle_t_bayes, subtitle_t_nonparametric, subtitle_t_onesample, subtitle_t_parametric, subtitle_t_robust, theme_corrmat, theme_pie - 0.0.62018-10-01 · diff ↗ ·
added 15 exports
bartlett_message, normality_message, signif_column, subtitle_contigency_tab, subtitle_ggbetween_anova_parametric, subtitle_ggbetween_kw_nonparametric, subtitle_ggbetween_mann_nonparametric, subtitle_ggbetween_rob_anova, subtitle_ggbetween_t_bayes, subtitle_ggbetween_t_parametric, subtitle_ggbetween_t_rob, subtitle_ggscatterstats, subtitle_onesample, subtitle_onesample_proptest, untable - 0.0.5
- 0.0.4
- 0.0.32018-05-22 · diff ↗ ·
added 4 exports
grouped_ggbetweenstats, grouped_ggcorrmat, grouped_ggpiestats, grouped_ggscatterstats - 0.0.2
- RR 3.5.0 released · 2018-04-23
- 0.0.12018-04-03
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2018-04-03
- Total releases
- 57 / 8 yrs
- License
- MIT + file LICENSE OSI · relicensed from GPL-3 | file LICENSE in 0.13.1
- Minimum R
- ≥ 4.5.0
- Bundled data
- 37 KB / 4 files
- Download size
- 4.1 MB
Cite
Cite this package
Run in R for the authors' entry:
citation("ggstatsplot")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.21105/joss.03167.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.