A widget that renders the safety.viz shift plot: a baseline-versus-comparison scatter that pairs each participant's baseline-visit value against their comparison-visit value for a selected measure, with optional filters, summary-statistic controls, and a participant-level listing.
Usage
Widget_ShiftPlot(
dfResults,
lSettings = list(),
width = NULL,
height = NULL,
elementId = NULL,
bDebug = FALSE
)Arguments
- dfResults
data.frameLong-format results data, one record per participant per visit per measure. Column names are supplied bylSettings; the defaults expectTEST/STRESN/VISIT/VISITNUM/USUBJID/STRESU(seeinst/schema/shift-plot.json).- lSettings
listsafety.viz shift-plot 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_ShiftPlot(
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")
),
baseline_visits = list("Baseline"),
comparison_visits = list("Week 26")
)
)