discrete_coloring | R Documentation |
Generates the parameters necessary for discrete coloring and colorbar
discrete_coloring(df, color_palette, categorical_color_range, legend_items)
df |
catmaply tibble |
color_palette |
the color palette |
categorical_color_range |
whether to use categorical color range or not. |
legend_items |
distinct/unique items of ordered legend items |
list(colorscale, tickvals, ticktext)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.