| build_palette | R Documentation | 
Generate a palette of related colors around a central color
build_palette(
  central_color,
  n_colors = 10,
  hue_range = 0.1,
  sat_range = 0.4,
  val_range = 0.45
)
| central_color | a single color value around which to build the palette | 
| n_colors | the number of colors to return in the primary palette (max = 100, default = 10) | 
| hue_range | how much variation in hue is allowed in the palette (range = 0 to 1, default = 0.1) | 
| val_range | how much variation in value is allowed in the palette (range = 0 to 1, default = 0.45) | 
a list of palette results, containing:
palette: a character vector with a 10-color palette realted to the central_color.
palette_plot: a ggplot2 object showing the 10 colors in palette.
colorset: A character vector with the full set of 100 colors from which the palette was selected.
colorset_plot: A ggplot2 object displaying all 100 colors in the colorset.
weave: a ggplot2 object generated with weave_plot() showing the intersection of all of the collors in the palette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.