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
.
handle_add_outlier_trace(
sp,
dframe,
ok,
selectors,
trace_map,
source = "scatterselect",
session
)
selected points
plot data
reactive, old keys
reactive input selectors
numeric, max trace id
plotly source
active session