'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
ggdotplotstats()now labels theyaxis with the name of theyvariable whenylab = NULL(default), as documented. Previously, noyaxis title was shown unlessylabwas supplied.ggcorrmat()now uses all numeric variables whencor.vars = NULLis passed explicitly, as documented, instead of failing with an error.ggcorrmat()now shows a single sample size in the legend whenever all correlation pairs share the same sample size. Previously, missing values in any column, including non-numeric columns not used in the correlations, switched the legend to minimum, mode, and maximum sample sizes.grouped_gghistostats()now computes its default common bin width from the non-missing values ofx, asgghistostats()does. Previously, missing values were counted in the sample size, making the bins too narrow.
Show all changes in 1.1.4Hide the rest of the changes in 1.1.4
ggbarstats()no longer displays empty proportion test labels above the bars whenxhas only one level, matchingggpiestats().gghistostats()andgrouped_gghistostats()now draw the histogram when all values ofxare identical (including a single observation). Previously, the default bin width was zero, so no bins were drawn.ggbarstats()andggpiestats()now show the test of independence in the subtitle whenxoryhas an empty level, such as an unused factor level. Previously, the subtitle was silently dropped. This fix comes from{statsExpressions}.gghistostats()andggdotplotstats()with a one-sidedalternativenow report a one-sided confidence interval for the effect size in the subtitle, matching the one-sided *p*-value. This fix comes from{statsExpressions}.
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-21.
GitHub Pages site last deployed 2026-10-18
pkgdown site last built 2026-10-18, before release 1.1.4 (2026-10-22)
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.
CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.
- insightfix by Nov 14
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.1.4Latest2026-10-22 · current release · diff ↗ ·
listed once in CRAN's queue
Seen in one reading of CRAN's incoming queue, at 2026-10-22 12:59 UTC, so it stayed less than the time between readings. - 1.1.32026-10-17 · 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 ↗
Show 52 earlier eventsHide 52 earlier events
- 0.12.42024-07-06 · diff ↗
- 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
- 58 / 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-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.