Package: depictr 0.3.0

depictr: A Unified Toolkit for Visualising Statistical Models and Data

A cohesive, publication-ready toolkit of plots that span the whole analysis workflow with one consistent look. It covers exploratory data analysis (distributions, categorical summaries, bivariate plots, scatter-plot matrices, correlation heatmaps, missing-data maps, outliers, estimation statistics and descriptive tables); multivariate analysis, clustering with diagnostics and Kaplan-Meier survival curves; time series (trends, autocorrelation, decomposition, seasonality and forecasting); model estimates and inference (forest plots, model comparison, frequentist and Bayesian estimates, predicted values, interactions, random effects and optimiser checks); diagnostics and classification (residual panels, binned residuals, influence, quantile-quantile, receiver operating characteristic (ROC) curves, calibration, threshold tuning and confusion matrices); uncertainty and power; and reporting helpers (a shared theme, colourblind-aware palettes, plot composition and saving). Every plotting function returns a 'ggplot2' object (or a 'patchwork' object for composite panels), heavier modelling back-ends are optional, and the package ships with reproducibly simulated datasets so that every example and vignette runs without further setup.

Authors:Pablo Bernabeu [aut, cre]

depictr_0.3.0.tar.gz
depictr_0.3.0.zip(r-4.7-any)depictr_0.3.0.zip(r-4.6-any)depictr_0.3.0.zip(r-4.5-any)
depictr_0.3.0.tgz(r-4.6-any)depictr_0.3.0.tgz(r-4.5-any)
depictr_0.3.0.tar.gz(r-4.7-any)depictr_0.3.0.tar.gz(r-4.6-any)
depictr_0.3.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
depictr/json (API)

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

Bug tracker:https://github.com/pablobernabeu/depictr/issues

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

Datasets:

On CRAN:

Conda:

brmsconvergencedata-sciencedatavizlme4lmerteststatisticsvisualisation

6.30 score 2 stars 24 scripts 369 downloads 64 exports 23 dependencies

Last updated from:c21cd66926. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK338
source / vignettesOK221
linux-releaseOK321
macos-releaseOK208
macos-oldrelOK234
windows-develOK313
windows-releaseOK301
windows-oldrelOK191
wasm-releaseOK105

Exports:acf_plotarrange_plotsbinned_residual_plotcalibration_plotcheck_figurecluster_plotcoefficient_plotcompare_modelsconfusion_matrix_plotcorrelation_heatmapdecompose_plotdendrogram_plotdepictr_optionsdepictr_palettedumbbell_plotecdf_ploteffects_plotestimation_plotexplore_bivariateexplore_categoricalexplore_distributionexplore_pairsformat_termsfrequentist_bayesian_plotgain_plotgroup_comparison_plotinfluence_plotinteraction_plotk_diagnosticlift_plotmissingness_mapmodel_fit_tablemodel_reportoptimizer_fixef_plotoutlier_plotpalette_previewpalette_safetypca_plotposterior_plotpower_curve_plotpr_curve_plotqq_plotraincloud_plotrandom_effects_plotresidual_diagnostics_plotridgeline_plotroc_curve_plotsave_plotscale_color_depictrscale_colour_depictrscale_fill_depictrscatter_trendscree_plotseasonal_plotsilhouette_plotsimulate_cvdsummary_tablesurvival_plottheme_depictrthreshold_plottidy_estimatestimeseries_plotts_forecastvif_plot

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecyclemagrittrpatchworkR6rbibutilsRColorBrewerRdpackrlangS7scalesstringistringrvctrsviridisLitewithr

Visualising model estimates
Coefficient (forest) plots | Comparing models | Predicted values and interactions | Frequentist and Bayesian estimates together | Posterior distributions on their own | Random effects | Optimiser checks | A one-figure model report | References

Last update: 2026-10-09
Started: 2026-06-08

Multivariate analysis and survival
Principal component analysis | Clustering | Choosing the number of clusters | Survival curves | References

Last update: 2026-10-09
Started: 2026-06-08

Getting started with depictr
Five datasets to explore | A tour by task | The shared spine: tidy_estimates() | A consistent, accessible look | Auditing the figure you are about to submit | Where to next | References

Last update: 2026-10-03
Started: 2026-06-09

Exploring data
One variable | Two variables, any types | Many variables at once | Distributions across groups | Estimation plots: effect size rather than a p-value | Comparing two groups across categories | Data quality: outliers and missingness | A descriptive summary table | Customising and extending the plots | Tidying the legend | Moving the legend into the plot | Built-in layout controls

Last update: 2026-10-03
Started: 2026-06-08

Time series
Plotting one or several series | Decomposition | Autocorrelation | The seasonal pattern up close | Forecasting | References

Last update: 2026-10-03
Started: 2026-06-09

Diagnostics, classification and uncertainty
Regression diagnostics | Diagnostics for a generalised linear model | Classification on an imbalanced outcome | Comparing two models in one figure | Choosing an operating point | Calibration | Uncertainty | Power curves | Composing and saving | References

Last update: 2026-10-03
Started: 2026-06-08

Readme and manuals

Help Manual

Help pageTopics
Autocorrelation plotacf_plot
Compose several plots into one figurearrange_plots
Binned-residual plot for a generalised linear modelbinned_residual_plot
Calibration plotcalibration_plot
Audit a finished figure for accessibility and honestycheck_figure
Simulated two-arm clinical trialclinical_trial
Cluster scatter plotcluster_plot
Forest (coefficient) plotcoefficient_plot
Compare estimates from several models or sourcescompare_models
Confusion matrix heatmapconfusion_matrix_plot
Plot a correlation matrix as a heatmapcorrelation_heatmap
Simulated crop-yield field trialcrop_yield
Time-series decomposition plotdecompose_plot
Dendrogramdendrogram_plot
Get or set the depictr look-and-feel optionsdepictr_options
The depictr colour palettesdepictr_palette
Dumbbell plotdumbbell_plot
Empirical cumulative distribution function (ECDF) plotecdf_plot
Plot predicted values for one predictoreffects_plot
Cumming estimation plotestimation_plot
Plot any pair of variablesexplore_bivariate
Bar chart of a categorical variableexplore_categorical
Plot the distribution of a variableexplore_distribution
Scatter-plot matrixexplore_pairs
Tidy raw coefficient names for displayformat_terms
Plot frequentist and Bayesian estimates togetherfrequentist_bayesian_plot
Cumulative gains chartgain_plot
Compare group means with confidence intervalsgroup_comparison_plot
Influence plotinfluence_plot
Plot a two-way interaction of predicted valuesinteraction_plot
Suggest a number of clustersk_diagnostic
Simulated lexical-decision experimentlexical_decision
Cumulative lift chartlift_plot
Map the missing values in a data framemissingness_map
Goodness-of-fit statistics across modelsmodel_fit_table
A one-figure model reportmodel_report
Simulated monthly sales time seriesmonthly_sales
Plot fixed effects across optimisersoptimizer_fixef_plot
Box / violin plot highlighting outliersoutlier_plot
Preview the depictr palettespalette_preview
Check that a palette stays distinguishable under each deficiencypalette_safety
PCA biplotpca_plot
Plot posterior distributionsposterior_plot
Plot a power analysis curvepower_curve_plot
Precision-recall curvepr_curve_plot
Normal quantile-quantile plotqq_plot
Raincloud plotraincloud_plot
Caterpillar plot of random effectsrandom_effects_plot
Residual-diagnostics panel for a fitted modelresidual_diagnostics_plot
Ridgeline plotridgeline_plot
ROC curveroc_curve_plot
Save a plot with publication-ready defaultssave_plot
depictr colour and fill scalesscale_color_depictr scale_colour_depictr scale_fill_depictr
Scatter plot with a fitted trendscatter_trend
Scree plotscree_plot
Seasonal-subseries (cycle) plotseasonal_plot
Silhouette plotsilhouette_plot
Simulate how colours appear under a colour-vision deficiencysimulate_cvd
A "Table 1" style descriptive summarysummary_table
Kaplan-Meier survival plotsurvival_plot
The depictr ggplot2 themetheme_depictr
Classification metrics versus decision thresholdthreshold_plot
Extract a tidy table of estimatestidy_estimates
Time-series plottimeseries_plot
Forecast a seasonal series with STL and a random walk with driftts_forecast
Variance inflation factor plotvif_plot
Simulated wellbeing surveywellbeing_survey