pal_preview | R Documentation |
pal_names()
displays the list of the palette names currently included
in pal
. pal_table()
generates a formatted tibble
with
information on the properties of all of the included palettes.
pal_colors()
displays the palette tibble for the selected palette.
pal_preview()
displays a simple preview of the selected colors in the
graphics window, based on the show_col()
function from
the scales
package.
pal_preview(
palette = "default",
ncol = NULL,
colors = NULL,
species = NULL,
alpha = 1,
labels = NULL,
columns = NULL
)
pal_names()
pal_colors(palette = "default")
pal_table()
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 |
labels |
What text to use for the color preview labels, options are
|
columns |
How many columns to use for the color preview, defaults to approximately square |
For pal_table()
:
Name
The palette name, used
in the pal_*()
functions
Key
Logical value, if the palette is one of the main, standard palettes
Named
Logical
value, if the palette table contains a name
column with species
names
Type
Factor, what category of information should be depicted each palette
Length
Integer, number of colors in palette
Brightness
Factor, is palette the Standard version, Light, or Dark
pal_preview("antibodies", labels = "species", columns = 2)
pal_preview("receptors", species = c("IL6R", "IL6R-Ab"), labels = "hex")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.