plotOutput
ggplot2 brushtableau_select_marks_by_brush_async.Rd
Shiny has its own built-in interactive plots feature (see
this and
this to get
started). The tableau_select_marks_by_brush_async
function lets you take a
brush input from a shiny::plotOutput()
and, if anything is selected, use it
to drive the selection of a Tableau worksheet within the same dashboard. Note
that because Tableau's selection model operates on marks, not rows in the
underlying data, the x and y dimensions in the originating plot must be
represented in the summary data of the target worksheet.
tableau_select_marks_by_brush_async(
worksheet,
brush,
session = shiny::getDefaultReactiveDomain()
)
worksheet | Single-element character vector naming the worksheet whose
selection we want to set. If your extension's configuration dialog uses
|
---|---|
brush |
|
session | The Shiny |
A promises::promise object. The promise object will not resolve to a useful value, but you can use it to handle errors.
Currently this function only works with plots based on ggplot2, not base graphics plots, because only ggplot2 plots supply the metadata that we need. Future releases of Tableau may make it possible to provide this feature to base plots as well.