Learn R Programming

quantable (version 0.3.6)

getDiv: create divergent palette

Description

create divergent palette

Usage

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

Run this code
# NOT RUN {
library(scales)
show_col(getDiv(21,4))
show_col(getDiv(21,4, increasing=FALSE))
# }

Run the code above in your browser using DataLab