All Projects → thomasp85 → Scico

thomasp85 / Scico

Licence: other
Palettes for R based on the Scientific Colour-Maps

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Scico

Paletteer
🎨🎨🎨 Collection of most color palettes in a single R package
Stars: ✭ 535 (+164.85%)
Mutual labels:  rstats, color-palette
Ggpomological
🍑 Pomological plot theme for ggplot2
Stars: ✭ 293 (+45.05%)
Mutual labels:  rstats, color-palette
Ghibli
Studio Ghibli colour palettes
Stars: ✭ 227 (+12.38%)
Mutual labels:  rstats, color-palette
R Color Palettes
Comprehensive list of color palettes available in r ❤️🧡💛💚💙💜
Stars: ✭ 708 (+250.5%)
Mutual labels:  rstats, color-palette
Datasaurus
R Package 📦 Containing the Datasaurus Dozen datasets 📊
Stars: ✭ 193 (-4.46%)
Mutual labels:  rstats
Git2r
R bindings to the libgit2 library
Stars: ✭ 171 (-15.35%)
Mutual labels:  rstats
Flexcolorpicker
Modern color picker library written in Swift 5 that can be easily extended and customized. It aims to provide great UX and performance with stable, quality code.
Stars: ✭ 164 (-18.81%)
Mutual labels:  color-palette
Image keras
Building an image classifier using keras
Stars: ✭ 162 (-19.8%)
Mutual labels:  rstats
Osmdata
R package for downloading OpenStreetMap data
Stars: ✭ 199 (-1.49%)
Mutual labels:  rstats
Climate Change Data
🌍 A curated list of APIs, open data and ML/AI projects on climate change
Stars: ✭ 195 (-3.47%)
Mutual labels:  rstats
Googleway
R Package for accessing and plotting Google Maps
Stars: ✭ 187 (-7.43%)
Mutual labels:  rstats
Nomnoml
Sassy 'UML' Diagrams for R
Stars: ✭ 173 (-14.36%)
Mutual labels:  rstats
Leaflet.extras
Extra functionality for leaflet R package.
Stars: ✭ 193 (-4.46%)
Mutual labels:  rstats
Viewpipesteps
Create tabs of View() output for each chained pipe
Stars: ✭ 168 (-16.83%)
Mutual labels:  rstats
Data Science In Education
Repository for 'Data Science in Education Using R' by Emily A. Bovee, Ryan A. Estrellado, Jesse Mostipak, Joshua M. Rosenberg, and Isabella C. Velásquez to be published by Routledge in 2020
Stars: ✭ 196 (-2.97%)
Mutual labels:  rstats
Plotly
An interactive graphing library for R
Stars: ✭ 2,096 (+937.62%)
Mutual labels:  rstats
Collapse
Advanced and Fast Data Transformation in R
Stars: ✭ 184 (-8.91%)
Mutual labels:  rstats
Inspectdf
🛠️ 📊 Tools for Exploring and Comparing Data Frames
Stars: ✭ 195 (-3.47%)
Mutual labels:  rstats
Sunburstr
R htmlwidget for interactive sunburst plots
Stars: ✭ 177 (-12.38%)
Mutual labels:  rstats
Dataretrieval
This R package is designed to obtain USGS or EPA water quality sample data, streamflow data, and metadata directly from web services. See: http://usgs-r.github.io/dataRetrieval/
Stars: ✭ 176 (-12.87%)
Mutual labels:  rstats

scico

Travis-CI Build Status AppVeyor Build Status CRAN_Release_Badge CRAN_Download_Badge

This is a small package to provide access to the colour palettes developed by Fabio Crameri and published at http://www.fabiocrameri.ch/colourmaps.php. It uses more or less the same api as viridis and provides scales for 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:

# install.packages("devtools")
devtools::install_github("thomasp85/scico")

Palettes

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

library(scico)

scico_palette_show()

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

scico(30, palette = 'lapaz')
#>  [1] "#190C65" "#1D196C" "#1E2575" "#202F7D" "#223A85" "#25448B" "#274E92"
#>  [8] "#2A5898" "#2E629D" "#336CA1" "#3774A3" "#3F7DA5" "#4886A6" "#528EA6"
#> [15] "#5F95A5" "#6C9AA3" "#7A9E9F" "#87A19A" "#95A494" "#A2A58F" "#ADA78B"
#> [22] "#BBA989" "#CAAD8A" "#DBB592" "#EBC0A0" "#F6CCB0" "#FBD7C2" "#FDE0D2"
#> [29] "#FFEAE2" "#FFF2F2"

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:

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].