colPal | R Documentation |
This function creates either a custom colour palette or can return the colours from an RColorBrewer palette
colPal(col)
col |
A character vector indicating the custom colours ("rgb", "colour name", "Hexadecimal") or RColourBrewer palette to be used. If list of colour values, the must all be of the same format ("color name", "hexadecimal", or "rgb()") If RColourBrewer palette name, length must be 1. |
A character vector of hexadecimal values representing the colour palette
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.