Package: depictr 0.4.0

Pablo Bernabeu

depictr: A Unified Toolkit for Visualising Statistical Models and Data

A toolkit of publication-ready plots that span the whole analysis workflow with one consistent appearance. 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, Kaplan-Meier survival curves and time series (trends, autocorrelation, decomposition, seasonality and forecasting). It also covers 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) and uncertainty and power. Reporting helpers provide 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. The package includes reproducibly simulated datasets on which every example and vignette runs without further setup.

Authors:Pablo Bernabeu [aut, cre]

depictr_0.4.0.tar.gz
depictr_0.4.0.zip(r-4.7-any)depictr_0.4.0.zip(r-4.6-any)
depictr_0.4.0.tar.gz(r-4.7-any)depictr_0.4.0.tar.gz(r-4.6-any)
depictr_0.4.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://cran.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:

3.08 score 398 downloads 65 exports 23 dependencies

Last updated from:e517575e71. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develOK217
source / vignettesOK290
linux-releaseOK255
windows-develOK214
windows-releaseOK222
wasm-releaseOK124

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_cvdsimulate_figuresummary_tablesurvival_plottheme_depictrthreshold_plottidy_estimatestimeseries_plotts_forecastvif_plot

Dependencies:clicpp11farverggplot2gluegtableisobandlabelinglifecyclemagrittrpatchworkR6rbibutilsRColorBrewerRdpackrlangS7scalesstringistringrvctrsviridisLitewithr

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-11-22
Started: 2026-09-01

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-11-22
Started: 2026-09-01

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

Last update: 2026-11-22
Started: 2026-09-01

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

Last update: 2026-11-22
Started: 2026-09-01

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

Last update: 2026-11-22
Started: 2026-09-01

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-11-22
Started: 2026-09-01

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 and violin plots 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
Show a finished figure as a reader with a colour-vision deficiency sees itsimulate_figure
A descriptive summary in the style of 'Table 1'summary_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