palette2colors: Extract hexadecimal colors from a color palette

Description Usage Arguments Value Examples

Description

Extract hexadecimal colors from a color palette

Usage

1

Arguments

name

The name of color palette from RColorBrewer package

reverse

Whether or not reverse the order of colors

Value

hexadecimal colors

Examples

1
2
3
4
5
require(RColorBrewer)
require(magrittr)
palette2colors("Reds")
ztable(head(mtcars,10)) %>%
     addColColor(cols=1:12,bg=palette2colors("Set3"))

ztable documentation built on Sept. 28, 2021, 9:07 a.m.