paletteer

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:

NameGithubCRAN
ButterflyColorsjunqueiragaabi/ButterflyColors - 0.0.0.9000-
DresdenColorkatiesaund/DresdenColor - 0.0.0.9000-
IslamicArtlambdamoses/IslamicArt - 0.1.0-
LaCroixColoRjohannesbjork/LaCroixColoR - 0.1.0-
ManuG-Thomson/Manu - 0.0.2-
MapPalettesdisarm-platform/MapPalettes - 0.0.2-
MetBrewerBlakeRMills/MetBrewer - 0.3.00.2.0
MexBrewerpaezha/MexBrewer - 0.0.2-
MoMAColorsBlakeRMills/MoMAColors - 0.0.0.9000-
NatParksPaletteskevinsblake/NatParksPalettes - 0.2.00.2.0
NineteenEightyRm-clark/NineteenEightyR - 0.1.0-
PNWColorsjakelawlor/PNWColors - 0.1.0-
Polychrome-1.5.1
PrettyColsnrennie/PrettyCols - 1.0.1.90011.0.1
RColorBrewer-1.1.3
RSkittleBreweralyssafrazee/RSkittleBrewer - 1.1-
Redmonder-0.2.0
awtoolsawhstin/awtools - 0.2.1-
basethemekaroliskoncevicius/basetheme - 0.1.30.1.3
beyoncedill/beyonce - 0.1-
calecopalan-bui/calecopal - 0.1.0-
cartographyriatelab/cartography - 3.1.53.1.4
colRozjacintak/colRoz - 0.2.2-
colorBlindness-0.1.9
colorblindrclauswilke/colorblindr - 0.1.0-
dichromat-2.0-0.1
dutchmastersEdwinTh/dutchmasters - 0.1.0-
feathersshandiya/feathers - 0.0.0.9000-
fishualizenschiett/fishualize - 0.2.30.2.3
futurevisionsJoeyStanley/futurevisions - 0.1.1-
ggpomologicalgadenbuie/ggpomological - 0.1.2-
ggprismcsdaw/ggprism - 1.0.3.90001.0.4
ggscinanxstats/ggsci - 3.0.03.0.0
ggthemesjrnold/ggthemes - 4.2.45.0.0
ggthemrMikata-Project/ggthemr - 1.1.0-
ghibliewenme/ghibli - 0.3.3.90000.3.3
grDevices-4.3.1
harrypotteraljrico/harrypotter - 2.1.12.1.1
impressionist.colors-1.0
jcolorsjaredhuling/jcolors - 0.0.5-
khromatesselle/khroma - 1.12.0.90001.12.0
lisatylerlittlefield/lisa - 0.1.2.90000.1.2
ltcloukesio/ltc_palettes - 0.2.0-
miscpalettesEmilHvitfeldt/miscpalettes - 0.0.0.9000-
musculusColorsdawnbarlow/musculusColors - 0.1.0-
nationalparkcolorskatiejolly/nationalparkcolors - 0.1.0-
nbapalettesmurrayjw/nbapalettes - 0.1.0.90000.1.0
nordjkaupp/nord - 1.0.01.0.0
ochRehollylkirk/ochRe - 1.0.0-
oompaBase-3.2.9
palettesForRfrareb/palettesForR - 0.1.20.1.2
palettetowntimcdlucas/palettetown - 0.1.1.900000.1.1
palrAustralianAntarcticDivision/palr - 0.4.00.4.0
palskwstat/pals - 1.91.8
peRReojbgb13/peRReo - 0.1.0-
popthemesjohnmackintosh/popthemes - 0.0.0.9000-
rcartocolorNowosad/rcartocolor - 2.1.12.1.1
rockthemesjohnmackintosh/rockthemes - 0.0.0.9000-
rtisttomasokal/rtist - 1.0.01.0.0
scicothomasp85/scico - 1.5.0.90001.5.0
severanceivelasq/severance - 0.0.0.9000-
soilpaletteskaizadp/soilpalettes - 0.1.0-
suffrageralburezg/suffrager - 0.1.0-
tayloRswiftasteves/tayloRswift - 0.1.0-
tidyquantbusiness-science/tidyquant - 1.0.7.90001.0.7
trekcolorsleonawicz/trekcolors - 0.1.30.1.3
tvthemesRyo-N7/tvthemes - 1.3.21.3.2
uniknhneth/unikn - 0.9.0.90080.9.0
vangoghcherylisabella/vangogh - 0.1.10.1.1
vapeplotseasmith/vapeplot - 0.1.0-
vapoRwavemoldach/vapoRwave - 0.3.0-
viridissjmgarnier/viridis - 0.6.40.6.4
visiblym-clark/visibly - 0.2.9-
waRholalexskeels/waRhol - 0.1.0-
werpalssciencificity/werpals - 0.1.0-
wesandersonkarthik/wesanderson - 0.3.70.3.7
yarrrndphillips/yarrr - 0.1.6NA

Copy Link

Version

Down Chevron

Install

install.packages('paletteer')

Monthly Downloads

23,221

Version

1.6.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

January 21st, 2024

Functions in paletteer (1.6.0)