A widget that renders the safety.viz outlier explorer: one line per participant across a measurement or time axis for a selected measure, with optional filters, color-by groups, normal-range annotations, and a detail listing for inspecting flagged outliers.
Usage
Widget_OutlierExplorer(
dfResults,
lSettings = list(),
width = NULL,
height = NULL,
elementId = NULL,
bDebug = FALSE
)Arguments
- dfResults
data.frameLong-format results data, one record per measurement. Column names are supplied bylSettings; the defaults expectTEST/STRESN/USUBJID/STRESU/STNRLO/STNRHI(seeinst/schema/outlier-explorer.json).- lSettings
listsafety.viz outlier-explorer settings overrides; merged onto the module'sDEFAULT_SETTINGSclient-side, so only overrides are needed.- width
characterWidth of the widget as a CSS unit. Default:NULL.- height
characterHeight of the widget as a CSS unit. Default:NULL.- elementId
characterID of the widget's HTML element. Default:NULL.- bDebug
logicalPrint debug messages in the browser console? Default:FALSE.
Examples
dfResults <- ExampleData("adbds")
Widget_OutlierExplorer(
dfResults,
lSettings = list(
filters = list(
list(value_col = "SITEID", label = "Site ID"),
list(value_col = "SEX", label = "Sex"),
list(value_col = "RACE", label = "Race"),
list(value_col = "ARM", label = "Treatment Group")
),
groups = list(
list(value_col = "ARM", label = "Treatment Group"),
list(value_col = "SEX", label = "Sex"),
list(value_col = "RACE", label = "Race"),
list(value_col = "SITE", label = "Site")
),
details = list(
list(value_col = "USUBJID", label = "Participant ID"),
list(value_col = "STRESN", label = "Result"),
list(value_col = "SEX", label = "Sex"),
list(value_col = "RACE", label = "Race"),
list(value_col = "ARM", label = "Treatment Group")
)
)
)