Description Usage Arguments Value Note Examples
This gadget lets you choose colours easily. You can select multiple colours,
and you can either choose any RGB colour, or browse through R colours. 
As of August 2016, this function is being deprecated and has moved to
the colourpicker package. Please use the colourpicker package
in the future.
| 1 | colourPicker(numCols = 1)
 | 
| numCols | The number of colours to select when the gadget launches (you can add and remove more colours from the app itself too) | 
Vector of selected colours
This gadget returns a vector of colours that can be assigned to a variable. If instead you want to get a text representation of the colours that can embedded into code, use the addin from the RStudio Addins menu.
| 1 2 3 | if (interactive()) {
  cols <- colourPicker(3)
}
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.