handle_add_outlier_trace: Handle outlier trace

Description Usage Arguments

View source: R/utils.R

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

1
2
3
4
5
6
7
8
9
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 Nov. 18, 2021, 5:06 p.m.