Description Usage Arguments Details Value Examples
Get the colors that ggplot2 uses by default. This code is not totally written by the author; he adapted it from someplace on the web.
1 | ggcolors(n)
|
n |
The number of colors you want (equally spaced along the color wheel) |
I made this into a function because I was tired of copying it into all my code.
A vector of colors is returned.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.