{"id":22088013,"url":"https://github.com/coatless-rpkg/visualize","last_synced_at":"2025-08-25T01:12:58.933Z","repository":{"id":56936638,"uuid":"89632973","full_name":"coatless-rpkg/visualize","owner":"coatless-rpkg","description":"Visualize probability distributions values","archived":false,"fork":false,"pushed_at":"2023-11-14T08:27:43.000Z","size":5608,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-24T14:35:02.114Z","etag":null,"topics":["graph","probability-distribution","r"],"latest_commit_sha":null,"homepage":"http://r-pkg.thecoatlessprofessor.com/visualize/","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/coatless-rpkg.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-27T19:27:46.000Z","updated_at":"2024-02-06T13:57:32.000Z","dependencies_parsed_at":"2022-08-21T05:50:59.117Z","dependency_job_id":null,"html_url":"https://github.com/coatless-rpkg/visualize","commit_stats":null,"previous_names":["coatless/visualize"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fvisualize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fvisualize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fvisualize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-rpkg%2Fvisualize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coatless-rpkg","download_url":"https://codeload.github.com/coatless-rpkg/visualize/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227470127,"owners_count":17778930,"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","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":["graph","probability-distribution","r"],"created_at":"2024-12-01T02:07:20.986Z","updated_at":"2024-12-01T02:07:21.541Z","avatar_url":"https://github.com/coatless-rpkg.png","language":"R","funding_links":[],"categories":[],"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 = \"50%\"\n)\n```\n\n# visualize\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/coatless-rpkg/visualize/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/coatless-rpkg/visualize/actions/workflows/R-CMD-check.yaml)\n[![CRAN RStudio mirror downloads](https://cranlogs.r-pkg.org/badges/visualize)](https://www.r-pkg.org/pkg/visualize)\n[![CRAN status](https://www.r-pkg.org/badges/version/visualize)](https://CRAN.R-project.org/package=visualize)\n\u003c!-- badges: end --\u003e\n\nThe goal of visualize is to graph the pdf or pmf and highlight what area or\nprobability is present in user defined locations. Visualize is able to provide\nlower tail, bounded, upper tail, and two tail calculations. Supports strict and\nequal to inequalities. Also provided on the graph is the mean and variance of\nthe distribution.\n\n## Installation\n\nYou can install the released version of visualize from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"visualize\")\n```\n\nAnd the development version from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"coatless/visualize\")\n```\n\n## Examples\n\nTo use visualize, load the package with:\n\n```{r}\nlibrary(\"visualize\")\n```\n\nThen, construct a graph by following the `visualize.dist()` pattern. For example,\nthe normal distribution can be shown with: \n\n```{r visualize-normal}\n# Graph a standard normal distribution with a z-score of 1.96\nvisualize.norm(1.96)\n# Change the location of the tail\nvisualize.norm(1.96, section = \"upper\")\n# Create a bounded range.\nvisualize.norm(c(-1.96, 1.96), section = \"bounded\")\n# Highlight both tails\nvisualize.norm(c(-1.96, 1.96), section = \"tails\")\n```\n\nThe parameters of the distribution can also be modified. Take for example the\nBinomial distribution.\n\n```{r visualize-binomial}\nvisualize.binom(stat = 9, size = 20, p = 0.5)\n# Visualize the binominal distribution with a higher size and lower probability.\nvisualize.binom(stat = 9, size = 24, p = 0.25)\n```\n\nDiscrete distributions can also handle a level of strict (`\u003c`, `\u003e`) or equal\nto (`\u003c=`, `\u003e=`) inequality.\n\n\n```{r discrete-inequalities}\n# Create a strict inequality (lower \u003c x \u003c higher)\nvisualize.pois(stat = c(4, 6), lambda = 3.5, section = \"bounded\",\n  strict = c(TRUE, TRUE))\n# Allow for equality on either side only on the right side of the bounded region.\nvisualize.pois(stat = c(4, 6), lambda = 3.5, section = \"bounded\",\n  strict = c(TRUE, FALSE))\n# Allow for equality on either side of the inequality (lower \u003c= x \u003c= higher)\nvisualize.pois(stat = c(4, 6), lambda = 3.5, section = \"bounded\",\n  strict = c(FALSE, FALSE))\n```\n\n\n## Author\n\nJames Joseph Balamuta\n\n## Citing the `visualize` package\n\nTo ensure future development of the package, please cite `visualize`\npackage if used during an analysis or simulation study. Citation information\nfor the package may be acquired by using in *R*:\n\n```{r, eval = FALSE}\ncitation(\"visualize\")\n```\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoatless-rpkg%2Fvisualize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoatless-rpkg%2Fvisualize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoatless-rpkg%2Fvisualize/lists"}