get_my_palette_name: Get the name of the custom palette for a given variable

Description Usage Arguments Value Examples

View source: R/helper.R

Description

Get the name of the custom palette for a given variable

Usage

1

Arguments

pal

Custom palette as a vector (see example).

name

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

Value

Name of ColorBrewer palette.

Examples

1
2
pal = list(Diet = "Set2", Sample_type = "Pastel1", Significance = "PuRd")
get_my_palette_name(pal, "Diet")

TBrach/MicrobiomeX documentation built on April 19, 2018, 12:25 a.m.