Fork me on GitHub
Simple
Selected colour:
colourInput("col", NULL, "blue")
Limited colour palette
Selected colour:
colourInput(
"col", NULL, "yellow",
palette = "limited")
Allow Transparent
Selected colour:
colourInput(
"col", NULL, "#00FF0080",
allowTransparent = TRUE)
Return colour name
Selected colour:
colourInput(
"col", NULL, "green",
returnName = TRUE,
palette = "limited")
Background only
Selected colour:
colourInput(
"col", NULL, "red",
showColour = "background")
Custom colour list
Selected colour:
colourInput(
"col", NULL,
palette = "limited",
allowedCols = c(
"white", "black", "red",
"#DDD", "blue",
"#0000FFA0", "#0000FF30",
"rgb(255, 255, 0)"
Update input control
Selected colour:

Use output in a plot
More apps by Dean