The goal of this repository is to have a one stop destination for anyone looking for a color palette to use in r. If you would like to help/contribute please feel free post an issue, PR or send a email to emilhhvitfeldt@gmail.com.
----- Attention ----- As this project is still in its early days I especially appreciate feedback on packages I have overlooked.
Further down the page is all the palettes available in the R ecosystem order alphabetically by package name. A list of palettes ordered by type can be found here Type sorted palettes to shorten the length of this page.
- Main page
- Blogposts and other resources
- Generative packages
- Honorable mentions
- Palettes sorted by Package (alphabetically)
- News
Here is a collection of material on the use and creation of color palettes in r.
- Creating corporate colour palettes for ggplot2
- Make your own color palettes with paletti
- How to create a color palette in R with more than 15 colors with ggplot2
- Generating a Custom Color Palette Function in R
- How to build a color palette from any image with R and k-means algo
- How to Read, Inspect, and Manipulate Color Swatch Files
The purpose of this project is to showcase the palettes already available in R (packages). However sometimes you have to resort to make one yourself. When that is the case the following packages aides in creating.
- AndreaCirilloAC/paletter
- jolars/qualpalr
- ronammar/randomcoloR
- johnbaums/hues
- ColorPalette
- oaColors
- earthtones
- leeper/colourlovers
When creating color palettes certain website have also provided valuable
Due to the somehow vague notion of "color palette" have I decided to exclude certain kinds of packages from the main gallery. Generative package have been discussed earlier.
The amazing cpt-city is a wonderful project of creating an archive of color palettes to be used in cartography, technical illustration and design. Due to the immense size (7140) I have decided to refer to it instead of re-illustration them in this repository. If any of the palettes found here are for your liking they can be accessed in R using the following package:
# CRAN version
install.packages("cptcity")
Many of the palettes in sports related palettes have a very limited number of colors (often only 2 colors). This leads to quite low usability outside of the special area of sports analytic.
-
colorr Color palettes for EPL, MLB, NBA, NHL, and NFL teams.
-
beanumber/teamcolors An R package providing color palettes for pro sports teams.
The ggthemes
package include the 150 four-color palettes from the canva.com. Doe to the size and limited number of colors in the palettes these palettes will be featured on their own page and only once.
# Developmental version
devtools::install_github("awhstin/awtools")
# CRAN version
install.packages("dichromat")
# Developmental version
devtools::install_github("EdwinTh/dutchmasters")
# Developmental version
devtools::install_github("road2stat/ggsci")
# CRAN version
install.packages("ggsci")
# Developmental version
devtools::install_github("gadenbuie/ggpomological")
# Developmental version
devtools::install_github("jrnold/ggthemes")
# CRAN version
install.packages("ggthemes")
# Developmental version
devtools::install_github("jrnold/ggthemes")
# CRAN version
install.packages("ggthemes")
# Developmental version
devtools::install_github("ewenme/ghibli")
# CRAN version
install.packages("ghibli")
# CRAN version
install.packages("grDevices")
# Developmental version
devtools::install_github("jkaupp/nord")
# CRAN version
install.packages("nord")
# Developmental version
devtools::install_github("ropenscilabs/ochRe")
# CRAN version
install.packages("ochRe")
# CRAN version
install.packages("oompaBase")
# Developmental version
devtools::install_github("timcdlucas/palettetown")
# CRAN version
install.packages("palettetown")
# Developmental version
devtools::install_github("AustralianAntarcticDivision/palr")
# CRAN version
install.packages("palr")
# Developmental version
devtools::install_github("kwstat/pals")
# CRAN version
install.packages("pals")
# Developmental version
devtools::install_github("kwstat/pals")
# CRAN version
install.packages("pals")
# Developmental version
devtools::install_github("kwstat/pals")
# CRAN version
install.packages("pals")
# Developmental version
devtools::install_github("kwstat/pals")
# CRAN version
install.packages("pals")
# Developmental version
devtools::install_github("kwstat/pals")
# CRAN version
install.packages("pals")
# Developmental version
devtools::install_github("kwstat/pals")
# CRAN version
install.packages("pals")
# CRAN version
install.packages("Polychrome")
# Developmental version
devtools::install_github("Nowosad/rcartocolor")
# CRAN version
install.packages("rcartocolor")
# CRAN version
install.packages("RColorBrewer")
# CRAN version
install.packages("Redmonder")
# Developmental version
devtools::install_github("alyssafrazee/RSkittleBrewer")
# Developmental version
devtools::install_github("sjmgarnier/viridis")
# CRAN version
install.packages("viridis")
# Developmental version
devtools::install_github("karthik/wesanderson")
# CRAN version
install.packages("wesanderson")
# Developmental version
devtools::install_github("ndphillips/yarrr")
# CRAN version
install.packages("yarrr")