handle_add_outlier_trace: Handle outlier trace

View source: R/utils.R

handle_add_outlier_traceR Documentation

Handle outlier trace

Description

Single outlier trace is added to plotly; interactive select/deselect was implemented by adjusting selected_points, and subsequently adding, or deleting+adding the (modified) trace at the end of the existing JS data array. Requires tracemap with trace names and corresponding indices. Simple check for re-execution was implemented by passing on the selection keys to compare against on pertinent plotly_event.

Usage

handle_add_outlier_trace(
  sp,
  dframe,
  ok,
  selectors,
  trace_map,
  source = "scatterselect",
  session
)

Arguments

sp

selected points

dframe

plot data

ok

reactive, old keys

selectors

reactive input selectors

trace_map

numeric, max trace id

source

plotly source

session

active session


datacleanr documentation built on June 8, 2025, 10:27 a.m.