get_my_palette_colors: Get palette color maps for a variable from a custom palette...

Description Usage Arguments Value Examples

Description

Get palette color maps for a variable from a custom palette vector of ColorBrewer palette names.

Usage

1

Arguments

pal

Custom palette as a vector (see example).

name

Name of variable to look up in the custom palette vector.

levels

List of values for the variable. Typically obtained by levels(var).

offset

Offset to use when using the corresponding ColorBrewer color vector.

Value

List of named color vectors.

Examples

1
2
pal = list(Diet = "Set2", Sample_type = "Pastel1", Significance = "PuRd")
get_my_palette_colors(pal, name = "Diet", levels = c("HFD", "HSD", "Control"))

TBrach/MicrobiomeX documentation built on May 14, 2019, 2:28 p.m.