updatePlotlyH {shinyHugePlot}R Documentation

Function to call a method to update plotly traces

Description

It is used by registering in a shiny application. It receives events in plotly figure and update it using a method of a downsampler instance. See the examples in downsampler class.

Usage

updatePlotlyH(
  session,
  outputId,
  relayout_order,
  ds_obj,
  reset = FALSE,
  reload = FALSE,
  verbose = FALSE
)

Arguments

session

session object. The object passed to function given to shinyServer.

outputId

Character. The outputId of the figure, whose data will be down-sampled

relayout_order

Named list. The list generated by plotlyjs_relayout, which is obtained using plotly::event_data.

ds_obj

downsampler instance. The instance containing original data of the figure, which is also used for updating the traces of plotly.

reset

Boolean. It it is TRUE, the figure will be updated even if relayout_order is NULL. The ranges of x axes are reset (initialized).

reload

Boolean. It it is TRUE, the figure will be updated even if relayout_order is NULL. The ranges of x axes are preserved.

verbose

Boolean. Whether detailed messages to check the procedures are shown. By default, FALSE.


[Package shinyHugePlot version 0.2.6 Index]