allows RColorBrew to handle n values less than 3 and greater than 8 without warnings and return expected number of colors.
safeBrew(n, pal = "Dark2")
integer value of number of colors to make palette for
palette recognized by RColorBrewer
a character vector of hex coded colors o flength n from the color brewer palette pal
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.