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))

quantable documentation built on May 2, 2019, 4:05 p.m.

Related to getDiv in quantable...