colorPicker {wilson}R Documentation

colorPicker module server logic

Description

Provides server logic for the colorPicker2 module.

Usage

colorPicker(
  input,
  output,
  session,
  num.colors = 256,
  distribution = "all",
  winsorize = NULL,
  selected = NULL
)

Arguments

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.

Details

A custom colorpalette's return will be NULL if there is something wrong with it.

equalize will be returned as FALSE if not selected.

Value

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).


[Package wilson version 2.4.2 Index]