formatPlotlyClinData {clinDataReview} | R Documentation |
Format interactive plot, with possibility to download patient profiles on a click event.
Description
Format interactive plot, with possibility to download patient profiles on a click event.
Usage
formatPlotlyClinData(
pl,
data,
idVar = "USUBJID",
pathVar = NULL,
pathDownload = TRUE,
idFromDataPlot = FALSE,
idVarPlot = "key",
labelVarPlot = NULL,
highlightOn = "plotly_click",
highlightOff = "plotly_doubleclick",
id = paste0("plotClinData", sample.int(n = 1000, size = 1)),
selectVars = NULL,
selectLab = getLabelVar(selectVars, labelVars = labelVars),
keyVar = NULL,
keyHighlightBox = FALSE,
labelVars = NULL,
verbose = FALSE
)
Arguments
pl |
|
data |
Data.frame with data. |
idVar |
String with variable of |
pathVar |
String with variable of |
pathDownload |
Logical, if TRUE (by default) the subject-specific report(s)
are downloaded in a zip compressed file.
If FALSE (only available if unique report per |
idFromDataPlot |
Logical, if TRUE (by default) |
idVarPlot |
String with variable in the |
labelVarPlot |
String with plotly variable used to
extract label to build the file name of the zip compressed
file containing patient report.
If not specified, the label are extracted based on the |
highlightOn |
String with event to turn on the selection
( |
highlightOff |
String with event to turn off the selection
( |
id |
String with general id for the plot:
If not specified, a random id, as 'plotClinData[X]' is used. |
selectVars |
(optional) Character vector with variable(s) from |
selectLab |
(Named) character vector with label for |
keyVar |
String with unique key variable, identifying unique group for which the link between the table and the plot should be done. |
keyHighlightBox |
Logical, if TRUE (FALSE by default) a selectize box is included to highlight selected element(s) of the key variable. |
labelVars |
Named character vector containing variable labels. |
verbose |
Logical, if TRUE report progress messages during execution (included in the browser 'Console'). |
Value
Updated plotly
object.
Author(s)
Laure Cougnaud