{"id":39109076,"url":"https://github.com/tystan/simplexity","last_synced_at":"2026-01-17T19:40:27.282Z","repository":{"id":97381754,"uuid":"310469213","full_name":"tystan/simplexity","owner":"tystan","description":"Hopefully taking out the complexity of using the simplex: functions to generate, manipulate and plot data on the simplex","archived":false,"fork":false,"pushed_at":"2024-12-11T05:43:13.000Z","size":557,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T00:51:30.498Z","etag":null,"topics":["compositional-data","plotting","r","simplex"],"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/tystan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-11-06T02:21:27.000Z","updated_at":"2025-07-01T00:12:03.000Z","dependencies_parsed_at":"2025-04-13T02:17:26.831Z","dependency_job_id":"5c82bf48-0ef4-47dd-8308-c20f67fdc850","html_url":"https://github.com/tystan/simplexity","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tystan/simplexity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tystan%2Fsimplexity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tystan%2Fsimplexity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tystan%2Fsimplexity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tystan%2Fsimplexity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tystan","download_url":"https://codeload.github.com/tystan/simplexity/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tystan%2Fsimplexity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28517415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"last_error":"SSL_read: 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":["compositional-data","plotting","r","simplex"],"created_at":"2026-01-17T19:40:26.693Z","updated_at":"2026-01-17T19:40:27.277Z","avatar_url":"https://github.com/tystan.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `simplexity` package\n\n\n[![DOI](https://zenodo.org/badge/310469213.svg)](https://zenodo.org/badge/latestdoi/310469213)\n\n\nHopefully taking out the complexity of using the simplex.\n\nThe `simplexity` package contains functions to generate, manipulate and plot data on the simplex\n\n## Getting started\n\n### Installation\n\n(platform independent) If you have `devtools` installed you can use:\n```r\nlibrary(devtools) # see https://www.r-project.org/nosvn/pandoc/devtools.html\ndevtools::install_github('tystan/simplexity') # see DESCRIPTION file for required and suggested packages\n```\n\nIf you don't have `devtools` installed but are using Windows, you can download and install the below zip file:\n\n[simplexity_0.2.0.zip](https://github.com/tystan/simplexity/blob/master/simplexity_0.2.0.zip)\n\n\n### Loading and using `simplexity`\n\n```r\nlibrary(simplexity)\n\n# now package loaded, see help file to run example\n?mk_simplex_grid\n# or create an example 4-simplex plot\nexample(\"plot_four_comp\", package = \"simplexity\")\n```\n\n### Example usage\n\n\n```r\n# create a grid of evenly spaced simplex values\n# number of cores = 1 faster for small computations\n# remove observations that are on the edge of the simplex (rm_edges = TRUE)\ngrid_4simplex \u003c- mk_simplex_grid(4, 0.2, nc = 1, rm_edges = TRUE)\ncolnames(grid_4simplex) \u003c- paste0(\"comp\", 1:ncol(grid_4simplex))\ngrid_4simplex\n#      comp1 comp2 comp3 comp4\n# [1,]   0.2   0.2   0.2   0.4\n# [2,]   0.2   0.2   0.4   0.2\n# [3,]   0.2   0.4   0.2   0.2\n# [4,]   0.4   0.2   0.2   0.2\n\n# simulate a fictitious response variable based on 4-simplex ilrs\ny \u003c- simplex_to_ilr(grid_4simplex) %*% matrix(c(-1, 1, 0.5), ncol = 1)\ncolnames(y) \u003c- \"outcome\"\n#         outcome\n# [1,] -0.3279463\n# [2,]  0.1621827\n# [3,]  0.7660467\n# [4,] -0.6002831\n\n# add the response variable to the simplex data for plotting\ngrid_4simplex \u003c- as.data.frame(cbind(y, grid_4simplex))\n# this is an interactive/movable plotly 3D scatterplot\nplot_four_comp(grid_4simplex, \"comp1\", \"comp2\", \"comp3\", \"comp4\", col = \"outcome\")\n\n\n```\n\n![](https://github.com/tystan/simplexity/blob/master/tetra_example.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftystan%2Fsimplexity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftystan%2Fsimplexity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftystan%2Fsimplexity/lists"}