Fork me on GitHub
Simple
Selected colour:
colourInput("col", NULL, "blue")
Limited colour palette
Selected colour:
colourInput(
"col", NULL, "yellow",
palette = "limited")
Return R colour name
Selected colour:
colourInput(
"col", NULL, "green",
returnName = TRUE,
palette = "limited")
Only show background
Selected colour:
colourInput(
"col", NULL, "red",
showColour = "background")
Allow "transparent"
Selected colour:
colourInput(
"col", NULL, "orange",
allowTransparent = TRUE)
Update input control
Selected colour:

Use output in a plot
Custom colour list
Selected colour:
colourInput(
"col", NULL,
palette = "limited",
allowedCols = c(
"white", "black", "red",
"blue", "yellow", "purple",
"green", "#DDD"))
More apps by Dean