scico

Palettes for R based on the Scientific Colour-Maps

https://github.com/thomasp85/scico

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 2 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 5 committers (20.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.7%) to scientific vocabulary

Keywords

color-palette rstats visualization
Last synced: 10 months ago · JSON representation

Repository

Palettes for R based on the Scientific Colour-Maps

Basic Info
  • Host: GitHub
  • Owner: thomasp85
  • License: other
  • Language: R
  • Default Branch: main
  • Size: 2.19 MB
Statistics
  • Stars: 454
  • Watchers: 7
  • Forks: 24
  • Open Issues: 4
  • Releases: 5
Topics
color-palette rstats visualization
Created about 8 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.Rmd

---
output: github_document
---



```{r, echo = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-"
)
```

# scico 


[![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)
[![CRAN_Release_Badge](http://www.r-pkg.org/badges/version-ago/scico)](https://CRAN.R-project.org/package=scico)
[![Codecov test coverage](https://codecov.io/gh/thomasp85/scico/branch/main/graph/badge.svg)](https://app.codecov.io/gh/thomasp85/scico?branch=main)


This is a small package to provide access to the colour palettes developed by
Fabio Crameri and published at . It
uses more or less the same api as 
[`viridis`](https://github.com/sjmgarnier/viridis) and provides scales for 
[`ggplot2`](https://github.com/tidyverse/ggplot2) without requiring `ggplot2` to
be installed.

## Installation
`scico` can be installed from CRAN with `install.packages('scico')`. If you want
the development version then install directly from GitHub:

```{r, eval=FALSE}
# install.packages("devtools")
devtools::install_github("thomasp85/scico")
```

## Palettes
`scico` provides 39 different palettes, all of which are perceptually uniform 
and colourblind safe. An overview can be had with the `scico_palette_show()`
function:

```{r}
library(scico)

scico_palette_show()
```

Once you've decided on a palette you can generate colour values using the 
`scico()` function:

```{r}
scico(30, palette = 'lapaz')
```

## ggplot2 support
`scico` provides relevant scales for use with `ggplot2`. It only suggests 
`ggplot2` in order to stay lightweight, but if `ggplot2` is available you'll 
have access to the `scale_[colour|fill]_scico()` functions:

```{r, message=FALSE}
library(ggplot2)
volcano <- data.frame(
  x = rep(seq_len(ncol(volcano)), each = nrow(volcano)),
  y = rep(seq_len(nrow(volcano)), ncol(volcano)),
  height = as.vector(volcano)
)
ggplot(volcano, aes(x = x, y = y, fill = height)) + 
  geom_raster() + 
  scale_fill_scico(palette = 'davos') 
```

## References
- Crameri, Fabio. (2018, May 8). *Scientific colour maps (Version 3.0.1)*. Zenodo. doi: 10.5281/zenodo.1243909
- Crameri, Fabio. (2018). *Geodynamic diagnostics, scientific visualisation and StagLab 3.0*. Geosci. Model Dev. Discuss. doi: 10.5194/gmd-2017-328

Owner

  • Name: Thomas Lin Pedersen
  • Login: thomasp85
  • Kind: user
  • Location: Copenhagen
  • Company: @posit-pbc, part of @tidyverse team

Maker of tools focusing on data science and data visualisation

GitHub Events

Total
  • Watch event: 44
  • Issue comment event: 1
Last Year
  • Watch event: 44
  • Issue comment event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 47
  • Total Committers: 5
  • Avg Commits per committer: 9.4
  • Development Distribution Score (DDS): 0.149
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Thomas Lin Pedersen t****5@g****m 40
Thomas Lin Pedersen w****6@z****l 3
Michael Grund 2****d 2
Michael Clark m****l@u****u 1
Fernando Campos c****a@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 14
  • Total pull requests: 8
  • Average time to close issues: 7 months
  • Average time to close pull requests: 4 months
  • Total issue authors: 10
  • Total pull request authors: 6
  • Average comments per issue: 1.29
  • Average comments per pull request: 1.25
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • andrewheiss (2)
  • nlubock (2)
  • thomasp85 (2)
  • jens-daniel-mueller (2)
  • dyl4nm4rsh4ll (1)
  • modche (1)
  • ptompalski (1)
  • LDalby (1)
  • wiw4002 (1)
  • hinojojojo (1)
Pull Request Authors
  • michaelgrund (3)
  • m-clark (1)
  • julou (1)
  • EmilHvitfeldt (1)
  • camposfa (1)
  • jmlondon (1)
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 3
  • Total downloads:
    • cran 4,299 last-month
  • Total docker downloads: 2,103
  • Total dependent packages: 6
    (may contain duplicates)
  • Total dependent repositories: 57
    (may contain duplicates)
  • Total versions: 17
  • Total maintainers: 1
proxy.golang.org: github.com/thomasp85/scico
  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 6.5%
Average: 6.7%
Dependent repos count: 6.9%
Last synced: 10 months ago
cran.r-project.org: scico

Colour Palettes Based on the Scientific Colour-Maps

  • Versions: 7
  • Dependent Packages: 5
  • Dependent Repositories: 57
  • Downloads: 4,299 Last month
  • Docker Downloads: 2,103
Rankings
Stargazers count: 0.9%
Dependent repos count: 3.2%
Forks count: 3.6%
Downloads: 6.5%
Dependent packages count: 8.2%
Average: 8.3%
Docker downloads count: 27.4%
Maintainers (1)
Last synced: 10 months ago
conda-forge.org: r-scico
  • Versions: 5
  • Dependent Packages: 1
  • Dependent Repositories: 0
Rankings
Stargazers count: 19.7%
Dependent packages count: 28.8%
Average: 29.7%
Dependent repos count: 34.0%
Forks count: 36.1%
Last synced: 10 months ago

Dependencies

DESCRIPTION cran
  • R >= 2.10 depends
  • grDevices * imports
  • scales * imports
  • covr * suggests
  • dplyr * suggests
  • ggplot2 * suggests
  • testthat * suggests