cb_pal: Color Blind Palette

Description Usage Arguments Value

View source: R/color_scales.R

Description

Pulls together some of the best or more common palettes for R, including those focused on colorblindness. wong palette is based on Wong, Bang. "Points of view: Color blindness." nature methods 8.6 (2011): 441-441. few palette is based on qualitative color palettes from Stephen Few, http://www.perceptualedge.com/articles/visual_business_intelligence/rules_for_using_color.pdf. ptol palette is based on qualitative color palettes from Paul Tol, https://personal.sron.nl/~pault/colourschemes.pdf. d3 palette is based on d3 standard. nature is based on Nature Publishing Group

Usage

1
cb_pal(n, pal = "wong", sort = TRUE)

Arguments

n

numeric number of colors to generate

pal

character string of color palette

sort

TRUE sorts colors based on their distances in HCL space

Value

pal_result vector color palette in HEX


jstagge/staggefuncs documentation built on May 20, 2019, 2:11 a.m.