Package: ggstatsplot 1.0.0

Indrajeet Patil

ggstatsplot: 'ggplot2' Based Plots with Statistical Details

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.03236>.

Authors:Indrajeet Patil [cre, aut, cph]

ggstatsplot_1.0.0.tar.gz
ggstatsplot_1.0.0.zip(r-4.7)ggstatsplot_1.0.0.zip(r-4.6)ggstatsplot_1.0.0.zip(r-4.5)
ggstatsplot_1.0.0.tgz(r-4.6-any)ggstatsplot_1.0.0.tgz(r-4.5-any)
ggstatsplot_1.0.0.tar.gz(r-4.7-any)ggstatsplot_1.0.0.tar.gz(r-4.6-any)
ggstatsplot_1.0.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
ggstatsplot/json (API)
NEWS

# Install 'ggstatsplot' in R:
install.packages('ggstatsplot', repos = c('https://ar-puuk.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/indrajeetpatil/ggstatsplot/issues

Pkgdown/docs site:https://www.indrapatil.com

Datasets:
  • bugs_long - Tidy version of the "Bugs" dataset.
  • iris_long - Edgar Anderson's Iris Data in long format.
  • movies_long - Movie information and user ratings from IMDB.com (long format).
  • Titanic_full - Titanic dataset.

On CRAN:

Conda:

bayes-factorsdatasciencedatavizeffect-sizeggplot-extensionhypothesis-testingnon-parametric-statisticsregression-modelsstatistical-analysis

15.25 score 2.2k stars 4 packages 3.7k scripts 12k downloads 82 mentions 22 exports 114 dependencies

Last updated from:9f083a28ff. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK358
source / vignettesOK374
linux-release-x86_64OK365
macos-release-arm64OK208
macos-oldrel-arm64OK257
windows-develOK156
windows-releaseOK131
windows-oldrelOK119
wasm-releaseOK192

Exports:combine_plotsextract_captionextract_statsextract_subtitleggbarstatsggbetweenstatsggcoefstatsggcorrmatggdotplotstatsgghistostatsggpiestatsggscatterstatsggwithinstatsgrouped_ggbarstatsgrouped_ggbetweenstatsgrouped_ggcorrmatgrouped_ggdotplotstatsgrouped_gghistostatsgrouped_ggpiestatsgrouped_ggscatterstatsgrouped_ggwithinstatstheme_ggstatsplot

Dependencies:abindafexbackportsBayesFactorbayestestRbootbroomBWStestcachemcarcarDataclicodacolorspacecontfraccorrelationcowplotcpp11datawizardDerivdescdeSolvedoBydplyreffectsizeellipticfarverfastmapforcatsforecastFormulafracdiffgenericsggcorrplotggplot2ggrepelggsideggsignifgluegmpgtablehypergeoinsightisobandkSampleslabelinglatticelifecyclelme4lmerTestlmtestmagrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkminqamodelrmultcompViewmvtnormnlmenloptrnnetnumDerivpaletteerparameterspatchworkpbapplypbkrtestperformancepillarpkgconfigplyrPMCMRplusprismaticpurrrquantregR6rbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreformulasrematch2reshapereshape2rlangRmpfrrstantoolsrstudioapiS7scalesSparseMstatsExpressionsstringistringrSuppDistssurvivaltibbletidyrtidyselecttimeDateurcautf8vctrsviridisLitewithrWRS2zoo

Additional vignettes

Rendered fromadditional.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-04-23
Started: 2018-10-08

Visualizations with statistical details: The 'ggstatsplot' approach

Rendered fromggstatsplot.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-04-04
Started: 2022-02-05

Readme and manuals

Help Manual

Help pageTopics
Tidy version of the "Bugs" dataset.bugs_long
Combining and arranging multiple plots in a gridcombine_plots
Extracting data frames or expressions from '{ggstatsplot}' plotsextract_caption extract_stats extract_subtitle
Stacked bar charts with statistical testsggbarstats
Box/Violin plots for between-subjects comparisonsggbetweenstats
Dot-and-whisker plots for regression analysesggcoefstats
Visualization of a correlation matrixggcorrmat
Dot plot/chart for labeled numeric data.ggdotplotstats
Histogram for distribution of a numeric variablegghistostats
Pie charts with statistical testsggpiestats
Scatterplot with marginal distributions and statistical resultsggscatterstats
Box/Violin plots for repeated measures comparisonsggwithinstats
Grouped bar charts with statistical testsgrouped_ggbarstats
Violin plots for group or condition comparisons in between-subjects designs repeated across all levels of a grouping variable.grouped_ggbetweenstats
Visualization of a correlalogram (or correlation matrix) for all levels of a grouping variablegrouped_ggcorrmat
Grouped histograms for distribution of a labeled numeric variablegrouped_ggdotplotstats
Grouped histograms for distribution of a numeric variablegrouped_gghistostats
Grouped pie charts with statistical testsgrouped_ggpiestats
Scatterplot with marginal distributions for all levels of a grouping variablegrouped_ggscatterstats
Violin plots for group or condition comparisons in within-subjects designs repeated across all levels of a grouping variable.grouped_ggwithinstats
Edgar Anderson's Iris Data in long format.iris_long
Movie information and user ratings from IMDB.com (long format).movies_long
Default theme used in '{ggstatsplot}'theme_ggstatsplot
Titanic dataset.Titanic_full