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

Description Usage Arguments Value Examples

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 May 14, 2019, 2:28 p.m.