Overview
Master your statistical workflow with TidyDensity
TidyDensity is the ultimate R package for working with probability distributions in a tidy, pipeable framework. Effortlessly integrate 35+ distributions into your pipelines with structured tibble outputs and publication-ready visualizations.
Highlights
35+ Distributions
Access a comprehensive library of probability distributions — from normal and beta to Weibull and Cauchy — all returning tidy tibbles.
Tidy-First Design
Native compatibility with pipes and tidy data structures means TidyDensity fits naturally into any tidyverse-based workflow.
Simulation & Fitting
Generate random variates, estimate densities, and fit distributions to your data — all with a consistent, intuitive API.
Publication-Ready Plots
Built-in visualization helpers produce clear, informative distribution plots suitable for reports and presentations.
Why TidyDensity?
Traditional distribution functions in R return vectors that require extra wrangling before they
can be used in a modern data pipeline. TidyDensity changes that by always returning a structured
tibble, so you can immediately pipe results into dplyr, ggplot2, or
any other tidyverse tool without any friction.
Whether you are running Monte Carlo simulations, fitting distributions to observed data, or simply need a quick density estimate, TidyDensity gives you a single, coherent interface that stays out of your way.
Get Started
Install from CRAN
The latest stable release of TidyDensity is available on CRAN. Install it with install.packages("TidyDensity").
Source on GitHub
Browse the source code, open issues, and contribute on GitHub.
Package Documentation
Full function reference, vignettes, and usage examples are available in the pkgdown documentation site.