canva_palettes {ggthemes}R Documentation

150 Color Palettes from Canva

Description

150 four-color palettes by the canva.com design school. These palettes were derived from photos and "impactful websites". They were then adapted to Tableau and Excel palettes by the sources below.

Usage

canva_palettes

Format

A named list of character vector. The names are the palette names. The values of the character vectors are hex colors, e.g. "#f98866".

Source

http://makeadifferencewithdata.com/wp-content/uploads/2016/12/color-palettes.txt

References

Examples

require("ggplot2")
require("purrr")
require("tibble")
canva_df <- map2_df(canva_palettes, names(canva_palettes),
                   ~ tibble(colors = .x, .id = seq_along(colors), palette = .y))
ggplot(canva_df, aes(y = palette, x = .id, fill = colors)) +
       geom_raster() +
       scale_fill_identity(guide = FALSE) +
       theme_minimal() +
       theme(panel.grid = element_blank(),
             axis.text.x = element_blank()) +
       labs(x = "", y = "")

[Package ggthemes version 3.5.0 Index]