{"id":32204346,"url":"https://github.com/talegari/ggisotonic","last_synced_at":"2026-02-21T03:32:28.886Z","repository":{"id":57697502,"uuid":"428025536","full_name":"talegari/ggisotonic","owner":"talegari","description":"Add isotonic or monotonic regression curves to ggplots","archived":false,"fork":false,"pushed_at":"2022-05-23T16:26:49.000Z","size":84,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-09T17:38:25.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/talegari.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}},"created_at":"2021-11-14T19:48:25.000Z","updated_at":"2022-06-13T01:49:41.000Z","dependencies_parsed_at":"2022-09-05T15:10:34.723Z","dependency_job_id":null,"html_url":"https://github.com/talegari/ggisotonic","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/talegari/ggisotonic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talegari%2Fggisotonic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talegari%2Fggisotonic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talegari%2Fggisotonic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talegari%2Fggisotonic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talegari","download_url":"https://codeload.github.com/talegari/ggisotonic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talegari%2Fggisotonic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29627922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T18:02:07.722Z","status":"ssl_error","status_checked_at":"2026-02-19T18:01:46.144Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-10-22T04:54:13.529Z","updated_at":"2026-02-21T03:32:28.876Z","avatar_url":"https://github.com/talegari.png","language":"R","funding_links":[],"categories":["Data and models"],"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)\nlibrary(\"ggisotonic\")\n```\n\n# ggisotonic\n\n\u003c!-- badges: start --\u003e\n\u003c!-- badges: end --\u003e\n\n`ggisotonic` introduces a ggplot layer `stat_isotonic` to add isotonic or monotonic regression curves similar to `ggplot2::geom_smooth`.\n\n## Installation\n\n```{r, eval = FALSE}\ninstall.packages(\"ggisotonic\")\nlibrary(\"ggisotonic\")\n```\n\nYou can install the released version of ggisotonic from github with:\n\n```{r, eval = FALSE}\nremotes::install_github(\"talegari/ggisotonic\")\n```\n\n## Example\n\n\n```{r example}\nlibrary(\"ggplot2\")\nset.seed(100)\ndataset = data.frame(x = sort(runif(1e2)),\n                    y = c(rnorm(1e2/2), rnorm(1e2/2, mean = 4)),\n                    w = sample(1:3, 1e2, replace = TRUE)\n                    )\nprint(head(dataset))\n\n```\n\n\n```{r}\n# plot isotonic regression line\nggplot(dataset, aes(x = x, y = y)) +\n   geom_point() +\n   stat_isotonic()\n\n# plot weighted isotonic regression line along with facets\nggplot(dataset, aes(x = x, y = y)) +\n   geom_point() +\n   stat_isotonic(aes(w = w), color = 'red', size = 1.5, show.legend = FALSE) +\n   facet_wrap(w ~ .)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalegari%2Fggisotonic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalegari%2Fggisotonic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalegari%2Fggisotonic/lists"}