View source: R/ggplot_functions.R
gg_color_hue | R Documentation |
Taken from John Colby's answer here: https://stackoverflow.com/questions/8197559/emulate-ggplot2-default-color-palette, this function lets you get the default palette from ggplot2.
gg_color_hue(n)
n |
the number of different colors in the palette |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.