{"id":14066979,"url":"https://github.com/spsanderson/TidyDensity","last_synced_at":"2025-07-30T00:32:06.421Z","repository":{"id":37954101,"uuid":"448093458","full_name":"spsanderson/TidyDensity","owner":"spsanderson","description":"Create tidy probability/density tibbles and plots of randomly generated and empirical data.","archived":false,"fork":false,"pushed_at":"2025-07-23T13:58:57.000Z","size":293439,"stargazers_count":34,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-23T14:40:37.109Z","etag":null,"topics":["bootstrap","density","distributions","ggplot2","probability","r","r-language","r-package","r-stats","simulation","statistics","tibble","tidy"],"latest_commit_sha":null,"homepage":"https://www.spsanderson.com/TidyDensity","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spsanderson.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-14T20:05:36.000Z","updated_at":"2025-07-23T13:59:02.000Z","dependencies_parsed_at":"2023-01-21T12:17:57.099Z","dependency_job_id":"538b0727-004f-4b57-8532-83bc1482c3e8","html_url":"https://github.com/spsanderson/TidyDensity","commit_stats":{"total_commits":473,"total_committers":1,"mean_commits":473.0,"dds":0.0,"last_synced_commit":"2df9297e1bc23eb707b2f1ba4614aa3ec61cc72e"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/spsanderson/TidyDensity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spsanderson%2FTidyDensity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spsanderson%2FTidyDensity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spsanderson%2FTidyDensity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spsanderson%2FTidyDensity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spsanderson","download_url":"https://codeload.github.com/spsanderson/TidyDensity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spsanderson%2FTidyDensity/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267785742,"owners_count":24144120,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","density","distributions","ggplot2","probability","r","r-language","r-package","r-stats","simulation","statistics","tibble","tidy"],"created_at":"2024-08-13T07:05:21.764Z","updated_at":"2025-07-30T00:32:05.008Z","avatar_url":"https://github.com/spsanderson.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\",\n  message = FALSE,\n  warning = FALSE\n)\n```\n\n# TidyDensity \u003cimg src=\"man/figures/logo.png\" width=\"147\" height=\"170\" align=\"right\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/TidyDensity)](https://cran.r-project.org/package=TidyDensity)\n![](https://cranlogs.r-pkg.org/badges/TidyDensity)\n![](https://cranlogs.r-pkg.org/badges/grand-total/TidyDensity)\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html##stable)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)\n\u003c!-- badges: end --\u003e\n\nThe goal of `{TidyDensity}` is to make working with random numbers from different\ndistributions easy. All `tidy_` distribution functions provide the following\ncomponents:\n\n-   [`r_`]\n-   [`d_`]\n-   [`q_`]\n-   [`p_`]\n\n## Installation\n\nYou can install the released version of `{TidyDensity}` from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"TidyDensity\")\n```\n\nAnd the development version from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"spsanderson/TidyDensity\")\n```\n\n## Example\n\nThis is a basic example which shows you how to solve a common problem:\n\n```{r example}\nlibrary(TidyDensity)\nlibrary(dplyr)\nlibrary(ggplot2)\n\ntidy_normal()\n```\n\nAn example plot of the `tidy_normal` data.\n\n```{r plot_density}\ntn \u003c- tidy_normal(.n = 100, .num_sims = 6)\n\ntidy_autoplot(tn, .plot_type = \"density\")\ntidy_autoplot(tn, .plot_type = \"quantile\")\ntidy_autoplot(tn, .plot_type = \"probability\")\ntidy_autoplot(tn, .plot_type = \"qq\")\n```\n\nWe can also take a look at the plots when the number of simulations is greater than\nnine. This will automatically turn off the legend as it will become too noisy.\n\n```{r more_than_nine_simulations}\ntn \u003c- tidy_normal(.n = 100, .num_sims = 20)\n\ntidy_autoplot(tn, .plot_type = \"density\")\ntidy_autoplot(tn, .plot_type = \"quantile\")\ntidy_autoplot(tn, .plot_type = \"probability\")\ntidy_autoplot(tn, .plot_type = \"qq\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspsanderson%2FTidyDensity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspsanderson%2FTidyDensity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspsanderson%2FTidyDensity/lists"}