{"id":13689600,"url":"https://github.com/thomasp85/scico","last_synced_at":"2025-05-16T13:02:14.020Z","repository":{"id":45566176,"uuid":"135289825","full_name":"thomasp85/scico","owner":"thomasp85","description":"Palettes for R based on the Scientific Colour-Maps","archived":false,"fork":false,"pushed_at":"2023-12-09T22:10:07.000Z","size":2299,"stargazers_count":446,"open_issues_count":4,"forks_count":24,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-12T08:33:12.728Z","etag":null,"topics":["color-palette","rstats","visualization"],"latest_commit_sha":null,"homepage":null,"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/thomasp85.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-29T12:03:27.000Z","updated_at":"2025-04-11T01:10:45.000Z","dependencies_parsed_at":"2022-08-12T11:52:22.939Z","dependency_job_id":"868a8627-43a5-49d1-a8f5-5a1c57538697","html_url":"https://github.com/thomasp85/scico","commit_stats":{"total_commits":47,"total_committers":5,"mean_commits":9.4,"dds":"0.14893617021276595","last_synced_commit":"e94d08c334c8de7ba5dd0c405baeb578a5d2651c"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasp85%2Fscico","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasp85%2Fscico/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasp85%2Fscico/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasp85%2Fscico/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasp85","download_url":"https://codeload.github.com/thomasp85/scico/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254535787,"owners_count":22087394,"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":["color-palette","rstats","visualization"],"created_at":"2024-08-02T15:01:55.047Z","updated_at":"2025-05-16T13:02:13.995Z","avatar_url":"https://github.com/thomasp85.png","language":"R","funding_links":[],"categories":["Themes and aesthetics","R"],"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, echo = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\"\n)\n```\n\n# scico \u003cimg src=\"man/figures/logo.png\" align=\"right\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/thomasp85/scico/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/thomasp85/scico/actions/workflows/R-CMD-check.yaml)\n[![CRAN_Release_Badge](http://www.r-pkg.org/badges/version-ago/scico)](https://CRAN.R-project.org/package=scico)\n[![Codecov test coverage](https://codecov.io/gh/thomasp85/scico/branch/main/graph/badge.svg)](https://app.codecov.io/gh/thomasp85/scico?branch=main)\n\u003c!-- badges: end --\u003e\n\nThis is a small package to provide access to the colour palettes developed by\nFabio Crameri and published at \u003chttp://www.fabiocrameri.ch/colourmaps.php\u003e. It\nuses more or less the same api as \n[`viridis`](https://github.com/sjmgarnier/viridis) and provides scales for \n[`ggplot2`](https://github.com/tidyverse/ggplot2) without requiring `ggplot2` to\nbe installed.\n\n## Installation\n`scico` can be installed from CRAN with `install.packages('scico')`. If you want\nthe development version then install directly from GitHub:\n\n```{r, eval=FALSE}\n# install.packages(\"devtools\")\ndevtools::install_github(\"thomasp85/scico\")\n```\n\n## Palettes\n`scico` provides 39 different palettes, all of which are perceptually uniform \nand colourblind safe. An overview can be had with the `scico_palette_show()`\nfunction:\n\n```{r}\nlibrary(scico)\n\nscico_palette_show()\n```\n\nOnce you've decided on a palette you can generate colour values using the \n`scico()` function:\n\n```{r}\nscico(30, palette = 'lapaz')\n```\n\n## ggplot2 support\n`scico` provides relevant scales for use with `ggplot2`. It only suggests \n`ggplot2` in order to stay lightweight, but if `ggplot2` is available you'll \nhave access to the `scale_[colour|fill]_scico()` functions:\n\n```{r, message=FALSE}\nlibrary(ggplot2)\nvolcano \u003c- data.frame(\n  x = rep(seq_len(ncol(volcano)), each = nrow(volcano)),\n  y = rep(seq_len(nrow(volcano)), ncol(volcano)),\n  height = as.vector(volcano)\n)\nggplot(volcano, aes(x = x, y = y, fill = height)) + \n  geom_raster() + \n  scale_fill_scico(palette = 'davos') \n```\n\n## References\n- Crameri, Fabio. (2018, May 8). *Scientific colour maps (Version 3.0.1)*. Zenodo. doi: 10.5281/zenodo.1243909\n- Crameri, Fabio. (2018). *Geodynamic diagnostics, scientific visualisation and StagLab 3.0*. Geosci. Model Dev. Discuss. doi: 10.5194/gmd-2017-328\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasp85%2Fscico","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasp85%2Fscico","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasp85%2Fscico/lists"}