https://github.com/spsanderson/tidydensity

Create tidy probability/density tibbles and plots of randomly generated and empirical data.

https://github.com/spsanderson/tidydensity

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 3 committers (33.3%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.7%) to scientific vocabulary

Keywords

bootstrap density distributions ggplot2 probability r r-language r-package r-stats simulation statistics tibble tidy
Last synced: 5 months ago · JSON representation

Repository

Create tidy probability/density tibbles and plots of randomly generated and empirical data.

Basic Info
Statistics
  • Stars: 35
  • Watchers: 2
  • Forks: 1
  • Open Issues: 3
  • Releases: 15
Topics
bootstrap density distributions ggplot2 probability r r-language r-package r-stats simulation statistics tibble tidy
Created about 4 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Code of conduct

README.Rmd

---
output: github_document
---



```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%",
  message = FALSE,
  warning = FALSE
)
```

# TidyDensity 


[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/TidyDensity)](https://cran.r-project.org/package=TidyDensity)
![](https://cranlogs.r-pkg.org/badges/TidyDensity)
![](https://cranlogs.r-pkg.org/badges/grand-total/TidyDensity)
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)


The goal of `{TidyDensity}` is to make working with random numbers from different
distributions easy. All `tidy_` distribution functions provide the following
components:

-   [`r_`]
-   [`d_`]
-   [`q_`]
-   [`p_`]

## Installation

You can install the released version of `{TidyDensity}` from [CRAN](https://CRAN.R-project.org) with:

``` r
install.packages("TidyDensity")
```

And the development version from [GitHub](https://github.com/) with:

``` r
# install.packages("devtools")
devtools::install_github("spsanderson/TidyDensity")
```

## Example

This is a basic example which shows you how to solve a common problem:

```{r example}
library(TidyDensity)
library(dplyr)
library(ggplot2)

tidy_normal()
```

An example plot of the `tidy_normal` data.

```{r plot_density}
tn <- tidy_normal(.n = 100, .num_sims = 6)

tidy_autoplot(tn, .plot_type = "density")
tidy_autoplot(tn, .plot_type = "quantile")
tidy_autoplot(tn, .plot_type = "probability")
tidy_autoplot(tn, .plot_type = "qq")
```

We can also take a look at the plots when the number of simulations is greater than
nine. This will automatically turn off the legend as it will become too noisy.

```{r more_than_nine_simulations}
tn <- tidy_normal(.n = 100, .num_sims = 20)

tidy_autoplot(tn, .plot_type = "density")
tidy_autoplot(tn, .plot_type = "quantile")
tidy_autoplot(tn, .plot_type = "probability")
tidy_autoplot(tn, .plot_type = "qq")
```

Owner

  • Name: Steven Paul Sanderson II, MPH
  • Login: spsanderson
  • Kind: user
  • Location: Meford, NY
  • Company: Stony Brook Medicine

R | SQL | Python and R, to create smarter healthcare analytics and decision support. #rstats #tidy #r #healthyverse #healthdata

GitHub Events

Total
  • Create event: 5
  • Release event: 1
  • Issues event: 9
  • Watch event: 2
  • Delete event: 4
  • Issue comment event: 3
  • Push event: 28
  • Pull request review comment event: 17
  • Pull request review event: 22
  • Pull request event: 24
Last Year
  • Create event: 5
  • Release event: 1
  • Issues event: 9
  • Watch event: 2
  • Delete event: 4
  • Issue comment event: 3
  • Push event: 28
  • Pull request review comment event: 17
  • Pull request review event: 22
  • Pull request event: 24

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 578
  • Total Committers: 3
  • Avg Commits per committer: 192.667
  • Development Distribution Score (DDS): 0.003
Past Year
  • Commits: 66
  • Committers: 1
  • Avg Commits per committer: 66.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Steven Paul Sanderson II, MPH s****n 576
olivroy 5****y 1
Ben Toh b****h@n****u 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 132
  • Total pull requests: 203
  • Average time to close issues: 20 days
  • Average time to close pull requests: 2 minutes
  • Total issue authors: 2
  • Total pull request authors: 3
  • Average comments per issue: 0.3
  • Average comments per pull request: 0.0
  • Merged pull requests: 191
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 14
  • Average time to close issues: 3 months
  • Average time to close pull requests: 7 minutes
  • Issue authors: 1
  • Pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.07
  • Merged pull requests: 7
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • spsanderson (131)
  • rwhitt221 (1)
Pull Request Authors
  • spsanderson (197)
  • Copilot (4)
  • olivroy (2)
Top Labels
Issue Labels
enhancement (104) bug (13) release (5) documentation (4) wontfix (2) help wanted (1) question (1)
Pull Request Labels
enhancement (86) release (15) bug (8) documentation (4)

Dependencies

DESCRIPTION cran
  • actuar * imports
  • dplyr * imports
  • ggplot2 * imports
  • magrittr * imports
  • methods * imports
  • nloptr * imports
  • patchwork * imports
  • plotly * imports
  • purrr * imports
  • rlang >= 0.4.11 imports
  • stats * imports
  • stringr * imports
  • survival * imports
  • tidyr * imports
  • EnvStats * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • roxygen2 * suggests