View source: R/graph_visualization.R
generate_colors | R Documentation |
given a bunch of items, generate a set of colors for either single node colorings
or pie-chart annotations. Colors are generated using the hcl colorspace,
and for n_color >= 5
, the colors are re-ordered in an attempt to create
the largest contrasts between colors, as they result from being picked on a
circle in hcl space.
generate_colors(n_color)
n_color |
how many colors to generate |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.