Description Usage Arguments Value Examples
Get palette color maps for a variable from a custom palette vector of ColorBrewer palette names.
1 |
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 |
offset |
Offset to use when using the corresponding ColorBrewer color vector. |
List of named color vectors.
1 2 | pal = list(Diet = "Set2", Sample_type = "Pastel1", Significance = "PuRd")
get_my_palette_colors(pal, name = "Diet", levels = c("HFD", "HSD", "Control"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.