Description Usage Arguments Details Value
Provides server logic for the colorPicker2 module.
1 2 3 4 5 6 7 8 9 | colorPicker(
input,
output,
session,
num.colors = 256,
distribution = "all",
winsorize = NULL,
selected = NULL
)
|
input |
Shiny's input object |
output |
Shiny's output object |
session |
Shiny's session object |
num.colors |
Define length of colorpalette vector (Default = 256). |
distribution |
Decide which palettes are selectable. One or more of list("sequential", "diverging", "categorical"). Defaults to "all" (Supports reactive). |
winsorize |
Numeric vector of two. Dynamically change lower and upper limit (supports reactive). Defaults to NULL. |
selected |
Set the default selected palette. |
A custom colorpalette's return will be NULL if there is something wrong with it.
equalize will be returned as FALSE if not selected.
Reactive containing list(palette = c(colors), name = palette_name, transparency = Integer, reverse = Boolean, winsorize = NULL or a two-component vector containing lower and upper limits).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.