Package: ggstats 0.13.0.9000

ggstats: Extension to 'ggplot2' for Plotting Stats

Provides new statistics, new geometries and new positions for 'ggplot2' and a suite of functions to facilitate the creation of statistical plots.

Authors:Joseph Larmarange [aut, cre]

ggstats_0.13.0.9000.tar.gz
ggstats_0.13.0.9000.zip(r-4.7)ggstats_0.13.0.9000.zip(r-4.6)ggstats_0.13.0.9000.zip(r-4.5)
ggstats_0.13.0.9000.tgz(r-4.6-any)ggstats_0.13.0.9000.tgz(r-4.5-any)
ggstats_0.13.0.9000.tar.gz(r-4.7-any)ggstats_0.13.0.9000.tar.gz(r-4.6-any)
ggstats_0.13.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
ggstats/json (API)

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

Bug tracker:https://github.com/larmarange/ggstats/issues

Pkgdown/docs site:https://larmarange.github.io

On CRAN:

Conda:

13.70 score 54 stars 145 packages 502 scripts 64k downloads 57 exports 31 dependencies

Last updated from:5d7fa06dcd. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK194
source / vignettesOK298
linux-release-x86_64OK201
macos-release-arm64OK120
macos-oldrel-arm64OK129
windows-develOK152
windows-releaseOK133
windows-oldrelOK135
wasm-releaseOK126

Exports:augment_chisq_add_phiauto_contrastcompute_cascadegeom_bar_connectorgeom_connectorgeom_diverginggeom_diverging_textgeom_likertgeom_likert_textgeom_prop_bargeom_prop_connectorgeom_prop_textgeom_pyramidgeom_pyramid_textgeom_stripped_colsgeom_stripped_rowsGeomConnectorggcascadeggcoef_compareggcoef_dodgedggcoef_facetedggcoef_modelggcoef_multicomponentsggcoef_multinomggcoef_plotggcoef_tablegglikertgglikert_datagglikert_sidegglikert_stackedggsurveyhex_bwhex_bw_thresholdlabel_number_abslabel_percent_abslikert_palpal_extenderplot_cascadeposition_divergingposition_likertPositionDivergingPositionLikertround_anyscale_colour_extendedscale_fill_extendedscale_fill_likertsignif_starsstat_crossstat_propstat_weighted_meanStatCrossStatPropStatWeightedMeansymmetric_limitsweighted.medianweighted.quantileweighted.sum

Dependencies:clicpp11dplyrfarverforcatsgenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpatchworkpillarpkgconfigpurrrR6RColorBrewerrlangS7scalesstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithr

Plot Likert-type items with gglikert()
Generating an example dataset | Quick plot | Customizing the plot | Sorting the questions | Sorting the answers | Proportion labels | Totals on each side | Variable labels | Custom center | Symmetric x-axis | Removing certain values | Facets | Stacked plot | Long format dataset | Weighted data | See also

Last update: 2026-01-27
Started: 2023-04-12

Plot model coefficients with ggcoef_model()
Quick coefficients plot | Customizing the plot | Variable labels | Term labels | Elements to display | ggplot2 elements | Forest plot with a coefficient table | Multinomial models | Multi-components models | Comparing several models | Advanced users | Supported models

Last update: 2025-12-21
Started: 2022-10-07

Geometries for diverging bar plots
New positions | New scales | Improving axes | New geometries | geom_diverging() & geom_diverging_text() | geom_likert() & geom_likert_text() | geom_pyramid() & geom_pyramid_text()

Last update: 2025-02-18
Started: 2024-09-18

Compute custom proportions with stat_prop()
Adding labels on a percent stacked bar plot | Displaying proportions of the total | A dodged bar plot to compare two distributions | Displaying unobserved levels | Using geom_prop_bar() and geom_prop_text()

Last update: 2024-09-22
Started: 2022-10-08

Compute cross-tabulation statistics with stat_cross()

Last update: 2022-10-13
Started: 2022-10-08

Compute weighted mean with stat_weighted_mean()

Last update: 2022-10-08
Started: 2022-10-08

Readme and manuals

Help Manual

Help pageTopics
Augment a chi-squared test and compute phi coefficientsaugment_chisq_add_phi
Connect bars / pointsGeomConnector geom_bar_connector geom_connector
Geometries for diverging bar plotsgeom_diverging geom_diverging_text geom_likert geom_likert_text geom_pyramid geom_pyramid_text
Convenient geometries for proportion bar plotsgeom_prop_bar geom_prop_connector geom_prop_text
Alternating Background Colorgeom_stripped_cols geom_stripped_rows
Cascade plotcompute_cascade ggcascade plot_cascade
Plot model coefficientsggcoef_compare ggcoef_dodged ggcoef_faceted ggcoef_model ggcoef_plot ggcoef_table
Deprecated functionsggcoef_multicomponents ggcoef_multinom
Plotting Likert-type itemsgglikert gglikert_data gglikert_side gglikert_stacked
Easy ggplot2 with survey objectsggsurvey
Identify a suitable font color (black or white) given a background HEX colorauto_contrast hex_bw hex_bw_threshold
Label absolute valueslabel_number_abs label_percent_abs
Extend a discrete colour palettepal_extender scale_colour_extended scale_fill_extended
Stack objects on top of each another and center them around 0PositionDiverging PositionLikert position_diverging position_likert
Round to multiple of any number.round_any
Colour scale for Likert-type plotslikert_pal scale_fill_likert
Significance Starssignif_stars
Compute cross-tabulation statisticsStatCross stat_cross
Compute proportions according to custom denominatorStatProp stat_prop
Compute weighted y meanStatWeightedMean stat_weighted_mean
Symmetric limitssymmetric_limits
Weighted Median and Quantilesweighted.median weighted.quantile
Weighted Sumweighted.sum