addSelectBtn {clinDataReview} | R Documentation |
Add selection box(es) to a plotly plot.
Description
Add selection box(es) to a plotly plot.
Usage
addSelectBtn(
data,
pl,
selectVars = NULL,
selectLab = NULL,
labelVars = NULL,
id = paste0("plotClinData", sample.int(n = 1000, size = 1)),
keyVar
)
Arguments
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. |
Value
if selectVars
is specified: a browsable
object combining the select buttons and the plotly
object.
Otherwise, the input plotly
object.