Skip to contents

Exploring data

A first look at distributions, relationships, data quality and summaries.

explore_distribution()
Plot the distribution of a variable
ecdf_plot()
Empirical cumulative distribution function (ECDF) plot
explore_categorical()
Bar chart of a categorical variable
explore_bivariate()
Plot any pair of variables
explore_pairs()
Scatter-plot matrix
correlation_heatmap()
Plot a correlation matrix as a heatmap
missingness_map()
Map the missing values in a data frame
outlier_plot()
Box / violin plot highlighting outliers
raincloud_plot()
Raincloud plot
ridgeline_plot()
Ridgeline plot
group_comparison_plot()
Compare group means with confidence intervals
estimation_plot()
Gardner-Altman / Cumming estimation plot
dumbbell_plot()
Dumbbell plot
scatter_trend()
Scatter plot with a fitted trend
summary_table()
A "Table 1" style descriptive summary

Multivariate, clustering and survival

Principal components, k-means and hierarchical clustering with cluster diagnostics, and Kaplan-Meier survival curves.

pca_plot()
PCA biplot
scree_plot()
Scree plot
cluster_plot()
Cluster scatter plot
silhouette_plot()
Silhouette plot
k_diagnostic()
Suggest a number of clusters
dendrogram_plot()
Dendrogram
survival_plot()
Kaplan-Meier survival plot

Time series

Series over time, autocorrelation, decomposition, seasonal subseries and forecasting.

timeseries_plot()
Time-series plot
acf_plot()
Autocorrelation plot
decompose_plot()
Time-series decomposition plot
seasonal_plot()
Seasonal-subseries (cycle) plot
ts_forecast()
Forecast a seasonal series with STL plus seasonal-naive drift

Model estimates and inference

Forest plots, model comparison, predicted values, interactions, random effects and goodness-of-fit, built on a shared tidy estimate table.

tidy_estimates()
Extract a tidy table of estimates
coefficient_plot()
Forest (coefficient) plot
compare_models()
Compare estimates from several models or sources
frequentist_bayesian_plot()
Plot frequentist and Bayesian estimates together
effects_plot()
Plot predicted values for one predictor
interaction_plot()
Plot a two-way interaction of predicted values
random_effects_plot()
Caterpillar plot of random effects
optimizer_fixef_plot()
Plot fixed effects across optimisers
model_fit_table()
Goodness-of-fit statistics across models

Diagnostics and classification

Residual diagnostics, influence, and the standard classification curves and tables.

residual_diagnostics_plot()
Residual-diagnostics panel for a fitted model
binned_residual_plot()
Binned-residual plot for a generalised linear model
influence_plot()
Influence plot
qq_plot()
Normal quantile-quantile plot
vif_plot()
Variance inflation factor plot
roc_curve_plot()
ROC curve
pr_curve_plot()
Precision-recall curve
gain_plot()
Cumulative gains chart
lift_plot()
Cumulative lift chart
calibration_plot()
Calibration plot
threshold_plot()
Classification metrics versus decision threshold
confusion_matrix_plot()
Confusion matrix heatmap

Uncertainty and power

Posterior summaries and power analysis curves.

posterior_plot()
Plot posterior distributions
power_curve_plot()
Plot a power analysis curve

Theming and reporting

A shared theme and colourblind-aware palette, label helpers, plot composition and saving, and a one-figure model report.

theme_depictr()
The depictr ggplot2 theme
depictr_palette()
The depictr colour palettes
scale_colour_depictr() scale_color_depictr() scale_fill_depictr()
depictr colour and fill scales
palette_preview()
Preview the depictr palettes
format_terms()
Tidy raw coefficient names for display
model_report()
A one-figure model report
arrange_plots()
Compose several plots into one figure
save_plot()
Save a plot with publication-ready defaults
depictr_options()
Get or set the depictr look-and-feel options

Data

Reproducibly simulated datasets used throughout the documentation.

lexical_decision
Simulated lexical-decision experiment
wellbeing_survey
Simulated wellbeing survey
crop_yield
Simulated crop-yield field trial
clinical_trial
Simulated two-arm clinical trial
monthly_sales
Simulated monthly sales time series