{"id":32200890,"url":"https://github.com/emcramer/choirbm","last_synced_at":"2025-10-22T03:57:00.593Z","repository":{"id":56935234,"uuid":"329775974","full_name":"emcramer/CHOIRBM","owner":"emcramer","description":"Plotting and analytic utilities for the CHOIR Body Map.","archived":false,"fork":false,"pushed_at":"2025-07-09T18:29:49.000Z","size":1107,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-22T03:56:49.944Z","etag":null,"topics":["body-map","cbm","choir","data-visualization","r","visualization"],"latest_commit_sha":null,"homepage":"","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/emcramer.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":"2021-01-15T01:19:08.000Z","updated_at":"2025-07-11T01:24:10.000Z","dependencies_parsed_at":"2022-08-21T05:50:13.136Z","dependency_job_id":null,"html_url":"https://github.com/emcramer/CHOIRBM","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/emcramer/CHOIRBM","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcramer%2FCHOIRBM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcramer%2FCHOIRBM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcramer%2FCHOIRBM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcramer%2FCHOIRBM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emcramer","download_url":"https://codeload.github.com/emcramer/CHOIRBM/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emcramer%2FCHOIRBM/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280376547,"owners_count":26320275,"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-10-22T02:00:06.515Z","response_time":63,"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":["body-map","cbm","choir","data-visualization","r","visualization"],"created_at":"2025-10-22T03:56:59.396Z","updated_at":"2025-10-22T03:57:00.588Z","avatar_url":"https://github.com/emcramer.png","language":"R","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)\n```\n\n# CHOIRBM\n\n\u003c!-- badges: start --\u003e\n[![DOI](https://zenodo.org/badge/329775974.svg)](https://doi.org/10.5281/zenodo.15850518)\n\u003c!-- badges: end --\u003e\n\nCHOIRBM is a collection of plotting utilities for the [Collaborative Health Outcomes Information Registry's](https://choir.stanford.edu) Body Map (CBM). The CBM is an instrument for assessing the distribution of a patient's pain, and has been validated in a paper published in [_Pain Reports_ (Scherrer et al 2021)](https://doi.org/10.1097/pr9.0000000000000880). The package is built on top of the popular R plotting package `ggplot2`, and returns plots as ggplot objects.\n\nSample of the CBM in clinical use:\n```{r img, echo = FALSE}\nknitr::include_graphics(\"man/figures/cbm-journal.jpeg\")\n```\n\n## Installation\n\nYou can install the released version of CHOIRBM from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"CHOIRBM\")\n```\n\nOr install the development version from GitHub with:\n\n``` r\ndevtools::install_github(\"emcramer/CHOIRBM\")\nremotes::install_github(\"emcramer/CHOIRBM\")\n```\n\n## Examples\n### Plotting the Male CBM\nThis is a basic example which shows you how to plot the front and back parts of the male CHOIR Body Map:\n\n```{r male_example, fig.height=3}\nlibrary(CHOIRBM)\n\n# generate some random example data\nset.seed(123)\nids \u003c- as.character(c(seq.int(101, 136, 1), seq.int(201, 238, 1)))\nvalues \u003c- data.frame(\n  id = ids\n  , value = runif(length(ids))\n  , ucolors = rainbow(length(ids))\n  , group = ifelse(as.numeric(ids) \u003c 200, \"Front\", \"Back\")\n)\n\n# plot the data on the front of the CHOIR body map\nplot_male_choirbm(values, \"value\")\n\n# plot each segment of the bodymap as a different color\nplot_male_choirbm(values, \"ucolors\")\n```\n\n### Plotting the female CBM\nAnd an additional example with the female CHOIR Body Map:\n\n```{r female_example, fig.height=3}\nlibrary(CHOIRBM)\n\n# generate some random example data\nexdata \u003c- gen_example_data()\n\n# plot the data on the front of the CHOIR body map\nplot_female_choirbm(exdata, \"value\")\n```\n\nCheck the vignettes for more examples such as plotting individual patients, highlighting specific segments, and changing color schemes.\n\n## Citations:\n\u003e Scherrer, Kristen Hymel; Ziadni, Maisa S; Kong, Jiang-Tia; Sturgeon, John A; Salmasi, Vafia; Hong, Juliette; Cramer, Eric; Chen, Abby L; Pacht, Teresa; Olson, Garrick; Darnall, Beth D; Kao, Ming-Chih; Mackey, Sean. Development and validation of the Collaborative Health Outcomes Information Registry body map, PAIN Reports: January/February 2021 - Volume 6 - Issue 1 - p e880\ndoi: [10.1097/PR9.0000000000000880](https://doi.org/10.1097/pr9.0000000000000880)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femcramer%2Fchoirbm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femcramer%2Fchoirbm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femcramer%2Fchoirbm/lists"}