{"id":16571534,"url":"https://github.com/hrbrmstr/gglogspline","last_synced_at":"2025-07-11T16:36:47.573Z","repository":{"id":141238216,"uuid":"192411531","full_name":"hrbrmstr/gglogspline","owner":"hrbrmstr","description":"📈A 'ggplot2' Extension for Visualizing Density, Distribution, Hazard, or Survival Functions using the 'logspline' Package","archived":false,"fork":false,"pushed_at":"2019-06-18T21:07:44.000Z","size":239,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T02:41:30.097Z","etag":null,"topics":["ggplot-extension","ggplot2","log-density","logspline","r","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrbrmstr.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-06-17T20:08:00.000Z","updated_at":"2025-03-22T10:55:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"4f1ae6be-a888-4949-a413-3d031375bc5d","html_url":"https://github.com/hrbrmstr/gglogspline","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hrbrmstr/gglogspline","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fgglogspline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fgglogspline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fgglogspline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fgglogspline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrbrmstr","download_url":"https://codeload.github.com/hrbrmstr/gglogspline/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrbrmstr%2Fgglogspline/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264852157,"owners_count":23673377,"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":["ggplot-extension","ggplot2","log-density","logspline","r","rstats"],"created_at":"2024-10-11T21:24:21.635Z","updated_at":"2025-07-11T16:36:47.555Z","avatar_url":"https://github.com/hrbrmstr.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\noutput: rmarkdown::github_document\neditor_options: \n  chunk_output_type: inline\n---\n```{r pkg-knitr-opts, include=FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE, fig.retina = 2, message = FALSE, warning = FALSE\n)\noptions(width=120)\n```\n\n[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/gglogspline.svg?branch=master)](https://travis-ci.org/hrbrmstr/gglogspline) \n[![Coverage Status](https://codecov.io/gh/hrbrmstr/gglogspline/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/gglogspline)\n[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/gglogspline)](https://cran.r-project.org/package=gglogspline)\n\n# gglogspline\n\nA 'ggplot2' Extension for Visualizing Density, Distribution, Hazard, or Survival Functions using the 'logspline' Package\n\n## Description\n\nMethods are provided to plot a logspline density, distribution function, hazard function or survival function from a logspline density\n\n## What's Inside The Tin\n\nThe following functions are implemented:\n\n- `stat_logspline`:\tComputes logspline density (+ counts estimate), probability, survival \u0026 hazard\n\n## Installation\n\n```{r install-ex, eval=FALSE}\ninstall(\"gglogspline\", repos = \"https://cinc.rud.is\")\n# or\ndevtools::install_git(\"https://git.sr.ht/~hrbrmstr/gglogspline.git\")\n# or\ndevtools::install_git(\"https://git.rud.is/hrbrmstr/gglogspline.git\")\n# or\ndevtools::install_gitlab(\"hrbrmstr/gglogspline\")\n# or\ndevtools::install_bitbucket(\"hrbrmstr/gglogspline\")\n# or\ndevtools::install_github(\"hrbrmstr/gglogspline\")\n```\n\n## Usage\n\n```{r lib-ex}\nlibrary(gglogspline)\nlibrary(ggplot2)\n\n# current version\npackageVersion(\"gglogspline\")\n\n```\n\n```{r}\nset.seed(1)\ndata.frame(\n  val = rnorm(100)\n) -\u003e xdf\n\nggplot(xdf) + \n  stat_logspline(aes(val))\n\nggplot(xdf) + \n  stat_logspline(aes(val, y = stat(count))) +\n  labs(title = \"logspline (count)\")\n\nggplot(xdf) +\n  stat_logspline(aes(val, y = stat(probs))) +\n  labs(title = \"logspline (probability function)\")\n\nggplot(xdf) +\n  stat_logspline(aes(val, y = stat(survival))) +\n  labs(title = \"logspline (survival function)\")\n\nggplot(xdf) +\n  stat_logspline(aes(val, y = stat(hazard))) +\n  labs(title = \"logspline (hazard function)\")\n```\n\n## gglogspline Metrics\n\n```{r cloc, echo=FALSE}\ncloc::cloc_pkg_md()\n```\n\n## Code of Conduct\n\nPlease note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). \nBy participating in this project you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fgglogspline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrbrmstr%2Fgglogspline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrbrmstr%2Fgglogspline/lists"}