pal_select | R Documentation |
This selects hex codes from the palettes defined in the internal pal
dataset. The list of available palettes can be previewed with
pal_names()
. Subsets of colors can be selected with the
ncol
, colors
, or species
arguments. Only one selection
method can be used in the function call. If no selection method is provided,
the function will return the full color palette with color names.
pal_select(
palette = "default",
ncol = NULL,
colors = NULL,
species = NULL,
alpha = 1
)
palette |
Character vector of length 1 defining the palette to select
colors from; use |
ncol |
Range of colors to select from |
colors |
Names of colors to select from |
species |
Names of species to select from |
alpha |
new alpha level in [0,1]. If alpha is |
A named character vector with the hex codes of the selected colors.
Color names are given for ncol
and colors
selections, and
species names are given for species
selection.
pal_select("receptors")
pal_select("receptors", ncol = 3)
pal_select("receptors", ncol = c(2,5))
pal_select("receptors", colors = c("lightred", "red", "orange"))
pal_select("receptors", species = c("IL8", "IL8R", "IL8R-Ab"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.