View source: R/Seurat.Utils.Visualization.R
gg_color_hue | R Documentation |
Generates a vector of colors that emulates the default color palette used by ggplot2. This function is useful for creating color sets for custom plotting functions or for applications outside of ggplot2 where a similar aesthetic is desired.
gg_color_hue(n)
n |
Integer specifying the number of distinct colors to generate. |
A character vector of color values in hexadecimal format, replicating the default hue color scale of ggplot2.
## Not run:
# Generate a palette of 5 colors
print(gg_color_hue(5))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.