| f_colorz | R Documentation |
Creates color scales for numeric values using predefined color palettes. The function supports optional log-transformation of the input values, handles constant vectors gracefully, and maps each numeric value to a color in the selected palette.
f_colorz(
z,
tf = FALSE,
palname = "viridis",
col_num = 100,
verbose = FALSE,
...
)
z |
Numeric vector. Values whose colors should be computed. |
tf |
Logical. If |
palname |
Character. Name of the palette. Available palettes:
|
col_num |
Integer. Number of colors in the palette (default: |
verbose |
logical; if |
... |
Additional arguments passed to methods. |
A character vector of colors of the same length as z.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.