handle_add_outlier_trace | R Documentation |
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
)
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.