create_palette | R Documentation |
Creates color palettes for figures using the the RColorBrewer, or the default color palette I made. The first 8 colors of the palette are from B. Wong's 2011 publication. The additional colors I added and may change as time goes by.
create_palette(color_count, colors = 'default')
color_count |
Number of colors to choose for palette. |
colors |
Name of a color set from the RColorBrewer package or a vector palete of R-accepted colors. |
palette
#create_palette(8, 'Dark2')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.