https://github.com/ijlyttle/colorpath
Build Color Paths
https://github.com/ijlyttle/colorpath
Last synced: about 2 months ago
JSON representation
Build Color Paths
- Host: GitHub
- URL: https://github.com/ijlyttle/colorpath
- Owner: ijlyttle
- License: other
- Created: 2020-09-11T23:25:41.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2022-09-08T22:40:39.000Z (almost 4 years ago)
- Last Synced: 2025-02-15T11:48:10.573Z (over 1 year ago)
- Language: R
- Homepage: https://ijlyttle.github.io/colorpath
- Size: 16 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# colorpath
[](https://CRAN.R-project.org/package=colorpath)
[](https://www.tidyverse.org/lifecycle/#experimental)
[](https://github.com/ijlyttle/colorpath/actions/workflows/R-CMD-check.yaml)
**Note**: on the off-chance that someone is reading this, as of late-2020 I am reworking the entire package.
Functions that are part of the "new regime" begin with `pth_`; we can expect other functions to be removed in time.
The goal of colorpath is to introduce as a level of abstraction above a color palette. It is thought that a set of palettes: categorical, sequential, and diverging, could be built using colors contained within a set of paths. A color path is built by constructing splines through HCL space, then scaling the input to aim for perceptual uniformity.
This may also be useful for constructing sets of palettes each for light mode and dark mode.
## Installation
You can install the github version of colorpath from [CRAN](https://CRAN.R-project.org) with:
``` r
# install.packages("remotes")
remotes::install_github("ijlyttle/colorpath")
```
## Acknowledgments
This package rests squarely on the foundation laid by the [**colorspace** package](https://cran.r-project.org/web/packages/colorspace/vignettes/colorspace.html), and was inspired by [Achim Zeileis' talk](https://www.youtube.com/watch?v=6bv2IAcNE_c) at UseR! 2019 in Toulouse.
As well, a lot of inspiration is drawn from the design of the [matplotlib default colormaps](https://www.youtube.com/watch?v=xAoljeRJ3lU) presented at PyCon 2015.
## Code of Conduct
Please note that the colorpath project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.