getDiv: create divergent palette

Description Usage Arguments Examples

View source: R/scales.R

Description

create divergent palette

Usage

1
getDiv(length = 11, pallete = 3, increasing = TRUE)

Arguments

length

nr of colors

pallete

there are a few divergent palletes in brewer_pal, default 1

increasing

default TRUE

Examples

1
2
3
library(scales)
show_col(getDiv(21,4))
show_col(getDiv(21,4, increasing=FALSE))

wolski/quantable documentation built on Dec. 7, 2018, noon