palette_this | R Documentation |
Color palettes collected in plotthis.
palette_this(
x,
n = 100,
palette = "Paired",
palcolor = NULL,
type = "auto",
keep_names = TRUE,
alpha = 1,
matched = FALSE,
reverse = FALSE,
NA_keep = FALSE,
NA_color = "grey80",
transparent = TRUE
)
x |
A vector of character/factor or numeric values. If missing, numeric values 1:n will be used as x. |
n |
The number of colors to return for numeric values. |
palette |
Palette name. All available palette names can be queried with |
palcolor |
Custom colors used to create a color palette. |
type |
Type of |
keep_names |
Whether to keep the names of the color vector. |
alpha |
The alpha value of the colors. Default is 1. |
matched |
If |
reverse |
Whether to invert the colors. |
NA_keep |
Whether to keep the color assignment to NA in |
NA_color |
Color assigned to NA if NA_keep is |
transparent |
Whether to make the colors transparent when alpha < 1.
When |
A vector of colors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.