View source: R/plots-utility-formatPlotlyClinData.R
addSelectBtn | R Documentation |
Add selection box(es) to a plotly plot.
addSelectBtn(
data,
pl,
selectVars = NULL,
selectLab = NULL,
labelVars = NULL,
id = paste0("plotClinData", sample.int(n = 1000, size = 1)),
keyVar
)
data |
|
pl |
|
selectVars |
(optional) Character vector with variable(s) from |
selectLab |
(Named) character vector with label for |
labelVars |
Named character vector containing variable labels. |
id |
String with general id for the plot:
If not specified, a random id, as 'plotClinData[X]' is used. |
keyVar |
String with unique key variable, identifying unique group for which the link between the table and the plot should be done. |
if selectVars
is specified: a browsable
object combining the select buttons and the plotly
object.
Otherwise, the input plotly
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.