colorPicker: colorPicker module server logic

Description Usage Arguments Details Value

View source: R/colorPicker.R

Description

Provides server logic for the colorPicker2 module.

Usage

1
2
3
4
5
6
7
8
9
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).


loosolab/wilson documentation built on Nov. 16, 2021, 3:21 p.m.