/
README.Rmd
56 lines (41 loc) · 1.82 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# spectralscale<img src="man/figures/logo.png" align="right" width="15%"/><br><small><font color="#333333">A consistent set of Spectral-based palettes and scales</font></small>
<!-- badges: start -->
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
[![CRAN status](https://www.r-pkg.org/badges/version/spectralscale)](https://CRAN.R-project.org/package=spectralscale)
<!-- badges: end -->
The goal of `spectralscale` is to provide a set of palettes and corresponding
continuous, discrete and binned colour and fill scales based on a consistent
set of colours. These should cover different purposes like those typical for
sequential, diverging, qualitative and paired palettes, and preferably be robust
with respect to different types of colour vision deficiency.
This is obviously quite a challenge, and I'm not sure it is even feasible, but
there are some excellent tools available to start from: The palettes are
currently all based on ColorBrewer's Spectral palette, as approximated by the
recent, and excellent `colorspace` package.
## Install
You can install the latest version of `spectralscale` with any of the following:
``` r
renv::install("rogiersbart/spectralscale")
pak::pkg_install("rogiersbart/spectralscale")
remotes::install_github("rogiersbart/spectralscale")
```
## Use
This is an overview of the current palettes:
```{r palette-overview, echo = FALSE, fig.height = 2, fig.width = 7}
spectralscale:::palette_overview()
```
## Contribute
## Expect
- Many changes in the near future.