ggstatsplot: 'ggplot2' Based Plots with Statistical Details
ggstatsplot is an extension of
ggplot2 package for creating
graphics with details from statistical tests included in the plots
themselves and targeted primarily at behavioral sciences community to
provide a one-line code to produce information-rich plots. In a typical
exploratory data analysis workflow, data visualization and statistical
modelling are two different phases: visualization informs modelling, and
modelling in its turn can suggest a different visualization method, and so
on and so forth. The central idea of ggstatsplot is simple: combine these
two phases into one in the form of graphics with statistical details, which
makes data exploration simpler and faster. Currently, it supports only the
most common types of statistical tests (parametric, nonparametric,
bayesian, and robust versions of t-test/anova, correlation, regression, and
contingency tables analyses).
The main functions are-
ggbetweenstatsfunction to produce information-rich comparison plot between different groups or conditions with
ggplot2and details from the statistical tests in the subtitle.
ggscatterstatsfunction to produce
ggplot2scatterplots along with a marginal histograms/boxplots/density plots from
ggExtraand details from the statistical tests in the subtitle.
ggpiestatsfunction to produce pie chart with details from the statistical tests in the subtitle.
ggbarstatsfunction to produce stacked bar chart with details from the statistical tests in the subtitle.
gghistostatsfunction to produce histogram for a single variable with results from one sample test displayed in the subtitle.
ggdotplotstatsfunction to produce Cleveland-style dot plots/charts for a single variable with labels and results from one sample test displayed in the subtitle.
ggcorrmatfunction to visualize the correlation matrix.
ggcoefstatsfunction to visualize results from regression analyses.
combine_plotshelper function to combine multiple
cowplot::plot_grid()with a combination of title, caption, and annotation label.
theme_ggstatsplotdefault theme used for this package.
For more documentation, see the dedicated Website.