handle_add_outlier_trace {datacleanr}R 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


[Package datacleanr version 1.0.3 Index]