fm_generate_colors | R Documentation |
Generates a text RGB color specification matrix based on a color palette.
fm_generate_colors(
color,
color.axis = NULL,
color.n = 512,
color.palette = cm.colors,
color.truncate = FALSE,
alpha = NULL
)
color |
|
color.axis |
The min/max limit values for the color mapping. |
color.n |
The number of colors to use in the color palette. |
color.palette |
A color palette function. |
color.truncate |
If |
alpha |
Transparency/opaqueness values. |
A list with character vector colors
and numeric vector alpha
Finn Lindgren finn.lindgren@gmail.com
fm_generate_colors(1:4, color.axis = c(1, 4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.