palette2colors: Extract hexadecimal colors from a color palette

palette2colorsR Documentation

Extract hexadecimal colors from a color palette

Description

Extract hexadecimal colors from a color palette

Usage

palette2colors(name, reverse = FALSE)

Arguments

name

The name of color palette from RColorBrewer package

reverse

Whether or not reverse the order of colors

Value

hexadecimal colors

Examples

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

cardiomoon/ztable documentation built on July 27, 2023, 10:25 a.m.