update_picker {picker}R Documentation

Send commands to a picker instance in a Shiny app

Description

Send commands to a picker instance in a Shiny app

Usage

update_picker(
  proxy,
  view_state = NULL,
  colors = NULL,
  labels = NULL,
  label_coords = NULL,
  polygons = NULL,
  show_grid = NULL,
  title = NULL
)

Arguments

proxy

picker proxy object created by picker_proxy.

view_state

view state from other picker input (optional).

colors

vector of hex colors, one for each row of coords.

labels

vector of point labels used for tooltips on hover.

label_coords

data.frame with three columns 'x', 'y', and 'label'. Used for text layer.

polygons

data.frame containing at minimum columns 'x1', 'x2', 'y1', 'y2', that define the polygons to draw and 'color' that defines the color.

show_grid

set to TRUE to turn on grid layer.

title

character string to show in top left of plot.

Value

The original proxy object. Called for side effects.

See Also

picker_proxy


[Package picker version 0.2.6 Index]