colourpicker (version 1.1.1)

colourPicker: Colour picker gadget

Description

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.

Usage

colourPicker(numCols = 3)

Value

Vector of selected colours

Arguments

numCols

The number of colours to select when the gadget launches (you can add and remove more colours from the app itself too)

Examples

Run this code
if (interactive()) {
  cols <- colourPicker(5)
}

Run the code above in your browser using DataCamp Workspace