A widget that renders the safety.viz hepatic safety explorer: an eDISH scatter plot of peak liver measures (ALT vs. total bilirubin, as multiples of the upper limit of normal) with Hy's Law quadrants, participant drill-down to a standardized-values-by-study-day view, and a linked measure table.
Usage
Widget_HepExplorer(
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/STNRHI(seeinst/schema/hep-explorer.json). Themeasure_valuessetting maps the ALT/AST/TB/ALP keys onto the dataset's measure names.- lSettings
listsafety.viz hep-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_HepExplorer(
dfResults,
lSettings = list(
studyday_col = "VISITNUM",
visit_col = "VISIT",
visitn_col = "VISITNUM",
measure_values = list(
ALT = "Alanine Aminotransferase",
AST = "Aspartate Aminotransferase",
TB = "Bilirubin",
ALP = "Alkaline Phosphatase"
),
filters = list(
list(value_col = "SEX", label = "Sex"),
list(value_col = "ARM", label = "Treatment Group")
),
groups = list(
list(value_col = "ARM", label = "Treatment Group"),
list(value_col = "SEX", label = "Sex")
)
)
)