• Stars
    star
    779
  • Rank 57,235 (Top 2 %)
  • Language
    R
  • License
    Other
  • Created about 6 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŽจ๐ŸŽจ๐ŸŽจ Collection of most color palettes in a single R package

paletteer

R-CMD-check CRAN status CRAN_Download_Badge Codecov test coverage Lifecycle: stable

The goal of paletteer is to be a comprehensive collection of color palettes in R using a common interface. Think of it as the โ€œcaret of palettesโ€.

Notice This version is not backwards compatible with versions <= 0.2.1. Please refer to the end of the readme for breaking changes

Installation

You can install the released version of paletteer from CRAN with:

install.packages("paletteer")

If you want the development version instead then install directly from GitHub:

# install.packages("devtools")
devtools::install_github("EmilHvitfeldt/paletteer")

Palettes

The palettes are divided into 2 groups; discrete and continuous. For discrete palette you have the choice between the fixed width palettes and dynamic palettes. Most common of the two are the fixed width palettes which have a set amount of colors which doesnโ€™t change when the number of colors requested vary like the following palettes:

on the other hand we have the dynamic palettes where the colors of the palette depend on the number of colors you need like the green.pal palette from the cartography package:

Lastly we have the continuous palettes which provides as many colors as you need for a smooth transition of color:

This package includes 2759 palettes from 75 different packages and information about these can be found in the following data.frames: palettes_c_names, palettes_d_names and palettes_dynamic_names. Additionally this github repo showcases all the palettes included in the package and more.

Examples

All the palettes can be accessed from the 3 functions paletteer_c(), paletteer_d() and paletteer_dynamic() using the by using the syntax packagename::palettename.

paletteer_c("scico::berlin", n = 10)
#> <colors>
#> #9EB0FFFF #5AA3DAFF #2D7597FF #194155FF #11181DFF #270C01FF #501802FF #8A3F2AFF #C37469FF #FFACACFF
paletteer_d("nord::frost")
#> <colors>
#> #8FBCBBFF #88C0D0FF #81A1C1FF #5E81ACFF
paletteer_dynamic("cartography::green.pal", 5)
#> <colors>
#> #B8D9A9FF #8DBC80FF #5D9D52FF #287A22FF #17692CFF

All of the functions now also support tab completion to easily access the hundreds of choices

ggplot2 scales

Lastly the package also includes scales for ggplot2 using the same standard interface

library(ggplot2)

ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
  geom_point() +
  scale_color_paletteer_d("nord::aurora")

Breaking changes

In version <= 0.2.1 a palatte was selected by specifying a package and palette argument like so

paletteer_c(package = "nord", palette = "frost")

After version 0.2.1 palettes are selected using the syntax "packagename::palettename" inside the palette functions.

paletteer_c("nord::frost")

Special thanks

Included packages

paletteer includes palettes from the following packages:

Name Github CRAN
ButterflyColors junqueiragaabi/ButterflyColors - 0.0.0.9000 -
DresdenColor katiesaund/DresdenColor - 0.0.0.9000 -
IslamicArt lambdamoses/IslamicArt - 0.1.0 -
LaCroixColoR johannesbjork/LaCroixColoR - 0.1.0 -
Manu G-Thomson/Manu - 0.0.2 -
MapPalettes disarm-platform/MapPalettes - 0.0.2 -
MetBrewer BlakeRMills/MetBrewer - 0.3.0 0.2.0
MexBrewer paezha/MexBrewer - 0.0.2 -
MoMAColors BlakeRMills/MoMAColors - 0.0.0.9000 -
NatParksPalettes kevinsblake/NatParksPalettes - 0.2.0 0.2.0
NineteenEightyR m-clark/NineteenEightyR - 0.1.0 -
PNWColors jakelawlor/PNWColors - 0.1.0 -
Polychrome - 1.5.1
PrettyCols nrennie/PrettyCols - 1.0.1.9001 1.0.1
RColorBrewer - 1.1.3
RSkittleBrewer alyssafrazee/RSkittleBrewer - 1.1 -
Redmonder - 0.2.0
awtools awhstin/awtools - 0.2.1 -
basetheme karoliskoncevicius/basetheme - 0.1.3 0.1.3
beyonce dill/beyonce - 0.1 -
calecopal an-bui/calecopal - 0.1.0 -
cartography riatelab/cartography - 3.1.5 3.1.4
colRoz jacintak/colRoz - 0.2.2 -
colorBlindness - 0.1.9
colorblindr clauswilke/colorblindr - 0.1.0 -
dichromat - 2.0-0.1
dutchmasters EdwinTh/dutchmasters - 0.1.0 -
feathers shandiya/feathers - 0.0.0.9000 -
fishualize nschiett/fishualize - 0.2.3 0.2.3
futurevisions JoeyStanley/futurevisions - 0.1.1 -
ggpomological gadenbuie/ggpomological - 0.1.2 -
ggprism csdaw/ggprism - 1.0.3.9000 1.0.4
ggsci nanxstats/ggsci - 3.0.0 3.0.0
ggthemes jrnold/ggthemes - 4.2.4 5.0.0
ggthemr Mikata-Project/ggthemr - 1.1.0 -
ghibli ewenme/ghibli - 0.3.3.9000 0.3.3
grDevices - 4.3.1
harrypotter aljrico/harrypotter - 2.1.1 2.1.1
impressionist.colors - 1.0
jcolors jaredhuling/jcolors - 0.0.5 -
khroma tesselle/khroma - 1.12.0.9000 1.12.0
lisa tylerlittlefield/lisa - 0.1.2.9000 0.1.2
ltc loukesio/ltc_palettes - 0.2.0 -
miscpalettes EmilHvitfeldt/miscpalettes - 0.0.0.9000 -
musculusColors dawnbarlow/musculusColors - 0.1.0 -
nationalparkcolors katiejolly/nationalparkcolors - 0.1.0 -
nbapalettes murrayjw/nbapalettes - 0.1.0.9000 0.1.0
nord jkaupp/nord - 1.0.0 1.0.0
ochRe hollylkirk/ochRe - 1.0.0 -
oompaBase - 3.2.9
palettesForR frareb/palettesForR - 0.1.2 0.1.2
palettetown timcdlucas/palettetown - 0.1.1.90000 0.1.1
palr AustralianAntarcticDivision/palr - 0.4.0 0.4.0
pals kwstat/pals - 1.9 1.8
peRReo jbgb13/peRReo - 0.1.0 -
popthemes johnmackintosh/popthemes - 0.0.0.9000 -
rcartocolor Nowosad/rcartocolor - 2.1.1 2.1.1
rockthemes johnmackintosh/rockthemes - 0.0.0.9000 -
rtist tomasokal/rtist - 1.0.0 1.0.0
scico thomasp85/scico - 1.5.0.9000 1.5.0
severance ivelasq/severance - 0.0.0.9000 -
soilpalettes kaizadp/soilpalettes - 0.1.0 -
suffrager alburezg/suffrager - 0.1.0 -
tayloRswift asteves/tayloRswift - 0.1.0 -
tidyquant business-science/tidyquant - 1.0.7.9000 1.0.7
trekcolors leonawicz/trekcolors - 0.1.3 0.1.3
tvthemes Ryo-N7/tvthemes - 1.3.2 1.3.2
unikn hneth/unikn - 0.9.0.9008 0.9.0
vangogh cherylisabella/vangogh - 0.1.1 0.1.1
vapeplot seasmith/vapeplot - 0.1.0 -
vapoRwave moldach/vapoRwave - 0.3.0 -
viridis sjmgarnier/viridis - 0.6.4 0.6.4
visibly m-clark/visibly - 0.2.9 -
waRhol alexskeels/waRhol - 0.1.0 -
werpals sciencificity/werpals - 0.1.0 -
wesanderson karthik/wesanderson - 0.3.7 0.3.7
yarrr ndphillips/yarrr - 0.1.6 NA

More Repositories

1

r-color-palettes

Comprehensive list of color palettes available in R โค๏ธ๐Ÿงก๐Ÿ’›๐Ÿ’š๐Ÿ’™๐Ÿ’œ
R
1,264
star
2

ggpage

Creates Page Layout Visualizations in R ๐Ÿ“„๐Ÿ“„๐Ÿ“„
R
326
star
3

smltar

Manuscript of the book "Supervised Machine Learning for Text Analysis in R" by Emil Hvitfeldt and Julia Silge
TeX
246
star
4

RStudioConf2020Slides

Links to slides for rstudio::conf 2020
179
star
5

ISLR-tidymodels-labs

R
149
star
6

R-text-data

List of textual data sources to be used for text mining in R
139
star
7

prismatic

color manipulation R package Simply and Tidy
R
127
star
8

textdata

Download, parse, store, and load text datasets instead of storing it in packages
R
69
star
9

quarto-revealjs-codewindow

quarto Revealjs pluging for styled codechunks
JavaScript
59
star
10

feature-engineering-az

Source for book "Feature Engineering A-Z"
HTML
57
star
11

useR2020-text-modeling-tutorial

CSS
56
star
12

quarto-roughnotation

An extension that uses the roughnotation javascript library to add animated annotations to revealjs documents.
JavaScript
56
star
13

friends

The Entire Transcript from Friends in Tidy Format
R
50
star
14

quarto-nes-theme

A Quarto reveal.js theme based on NES.css
SCSS
45
star
15

gganonymize

Anonymize the labels and text in a ggplot2
R
42
star
16

quarto-iframe-examples

JavaScript
37
star
17

quarto-revealjs-letterbox

A Quarto reveal.js theme based on xaringan letterbox
HTML
35
star
18

ggshapes

Adding various geometrical shapes to ggplot2
R
25
star
19

quickpalette

๐Ÿƒโ€โ™€๏ธ๐ŸŽจ R package for quick extraction of color palettes from text and images
R
25
star
20

emoji

Data About Emojis
R
24
star
21

quarto-designmode

Quarto Extension to enable DesignMode
JavaScript
22
star
22

talk-nyr-slidecraft

HTML
21
star
23

bookdown-github-actions-netlify

Example of using Github Actions to deploy bookdown on Netlify
R
21
star
24

unitscales

Adding additional ggplot2 scales that adds units
R
20
star
25

talk-quarto-theming-positconf

JavaScript
18
star
26

quarto-revealjs-earth

Watercolor earth Quarto reveal.js theme
SCSS
18
star
27

xaringancolor

Uniform Colors in Xaringan Presentations
R
17
star
28

xaringan-gallery

xaringan gallery, a growing collection of examples and custom themes
HTML
17
star
29

walmartAPI

Walmart Open API Wrapper
R
17
star
30

horus

Visual tools to help machine learning model selection
R
14
star
31

quarto-revealjs-cinco-de-mayo

Cinco de Mayo Quarto reveal.js theme
JavaScript
14
star
32

quarto-revealjs-highlightword

quarto Revealjs pluging for styled codechunks
JavaScript
13
star
33

elevators

Data Package Containing Information About Elevators in NYC
R
13
star
34

quarto-snow

Quarto Extension to add snow
JavaScript
12
star
35

scotus

Collection of Supreme Court of the United States' Opinions.
R
12
star
36

quarto-revealjs-seasons

quarto revealjs seasons theme template
JavaScript
11
star
37

emilhvitfeldt

10
star
38

hcandersenr

An R Package for H.C. Andersens fairy tales
R
9
star
39

advent-of-steps

Adventofsteps slides
HTML
8
star
40

wordsalad

Provide Tools to Extract and Analyze Word Vectors
R
8
star
41

ferriswheels

Harmless data set about ferris wheels
R
8
star
42

workshop-useR2022-tidymodels

R
8
star
43

talk-useR2022-textrecipes

HTML
7
star
44

tidygutenbergr

cleaned gutenbergr text
R
7
star
45

quarto-revealjs-inverse

quarto revealjs inverse theme template
SCSS
7
star
46

tilemapr

R functions for square and hextile maps
R
7
star
47

palette2vec

Technique to Embed Color Palettes to Multidimensional Space
R
6
star
48

talk-positconf2023-fancy-slides

HTML
6
star
49

talk-slc-slidecraft

JavaScript
6
star
50

fontscales

Use Iconographic Fonts in 'ggplot2'
R
6
star
51

offensiveR

R package that checks for offensive words in texts and documents
R
5
star
52

talk-rstudioconf2022-tidyclust

JavaScript
5
star
53

genderify

HTML
5
star
54

pptxtemplates

Provide themed powerpoint presentation templates to rmarkdown
R
5
star
55

index-challenge

R
5
star
56

emiladdins

Moar Addins for RStudio
R
5
star
57

rstats-adventofcode

R
5
star
58

fastTextR

An Interface to the 'fastText' Library
C++
4
star
59

quarto-syntax-theme-editor

Low-tech quarto syntax highlighting theme editor
R
4
star
60

talk-purrr-ocrug-2023

HTML
4
star
61

aocfuns

Advent Of Code helper functions
R
4
star
62

extrasteps

More Steps for the 'recipes' Package
R
4
star
63

ggrandom

Introduce Absolute Chaos to 'ggplot2'
R
4
star
64

tidymodels-pipelines

JavaScript
4
star
65

dplyr-slides

JavaScript
4
star
66

working-with-docker

๐Ÿณ Worked minimal examples of workflows with Docker and R
Dockerfile
4
star
67

percentify

Splitting a dataset according to percentile ranges to be used with tidy verbs
R
4
star
68

github-issue-table

HTML
3
star
69

tidytuesday

#TidyTuesday Gallery
3
star
70

quarto-revealjs-template

Personal Quarto Revealjs Template
SCSS
3
star
71

miscpalettes

R package with miscellaneous color palettes
R
3
star
72

workshop-ocrug-hackathon-nlp

HTML
3
star
73

roundabouts

R package containing roundabouts database
R
3
star
74

textmodels4pharma

SCSS
3
star
75

refactoring-r

Refactoring in R
R
3
star
76

AU-2021spring-627

HTML
3
star
77

AU-2021fall-627

HTML
3
star
78

talk-harvard-tidymodels

CSS
3
star
79

talk-branded-quarto-abuja

JavaScript
2
star
80

emilverse

Easily Install and Load Select Packages
R
2
star
81

Tree-GenViz

R
2
star
82

quarto-revealjs-merry

JavaScript
2
star
83

workshops

2
star
84

talks

My collection of talks
HTML
2
star
85

rstudioconf-agenda

HTML
2
star
86

emilfun

Personal R Package
R
2
star
87

recap

R
2
star
88

ggshuffle

Tool to determine if the plotting order impacts the resulting ggplot2
R
2
star
89

talk-positconf2023-101-slides

HTML
2
star
90

talk-AstraZeneca-recipes

HTML
2
star
91

courses

2
star
92

color-resources

A curated list of resources related to the use of colors
2
star
93

quarto-revealjs-yule

JavaScript
2
star
94

talk-socalrug-hackathon-feature-engineering

HTML
2
star
95

workshop-quarto-websites

HTML
2
star
96

ggtetris

Create Tetris Chart Visualizations in R
R
1
star
97

animals

Dataset with Descriptions of Animals
R
1
star
98

Polygon-splitting-genViz

R
1
star
99

githublink

What the Package Does (One Line, Title Case)
R
1
star
100

foo

1
star