Learn R Programming

shinyjs (version 0.9.1)

colourPicker: Colour picker gadget (DEPRECATED)

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. As of August 2016, this function is being deprecated and has moved to the colourpicker package. Please use the colourpicker package in the future.

Usage

colourPicker(numCols = 1)

Arguments

numCols

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

Value

Vector of selected colours

Examples

Run this code
# NOT RUN {
if (interactive()) {
  cols <- colourPicker(3)
}
# }

Run the code above in your browser using DataLab