get_pal: Get k colors from a named color palette

Description Usage Arguments Value Examples

Description

Get k colors from a named color palette

Usage

1
get_pal(K, palette = "changes")

Arguments

K

number of colors

palette

name of a palette

Value

dataframe with columns k (from 1 to K) and column col

Examples

1
2
3
4
5
# colours from a luminous shade:
ls <- get_pal(5, "luminous shade")
ls %>% ggplot() + 
   geom_tile(aes(x=1, y = 1, fill=col)) + 
   scale_fill_identity() + facet_wrap(~k)

dicook/gretchenalbrecht documentation built on May 13, 2019, 6:13 p.m.