Spider Plot Module Server
spiderplot_server.RdSpider Plot Module Server
Usage
spiderplot_server(
id,
datasets,
subjid_var,
x_vars,
y_vars,
color_vars,
color_palette = NULL,
tooltip = NULL,
facet_rows = NULL,
facet_cols = NULL,
title = NULL,
subtitle = NULL,
switch_func = NULL,
receiver_id = NULL
)Arguments
- id
`[character(1)]`. Unique identifier for the module server.
- datasets
`[list(2)]`. A list containing subject level and analysis results datasets.
- subjid_var
`[character(1)]`. Variable name for subject identifier. (e.g., "USUBJID").
- x_vars
`[character(1+)]`. A character vector of variable names for the x-axis. Each element must be a valid column name in the results dataset. Supported types are numeric (e.g. "ADY") and character/factor (e.g. "AVISIT"). When multiple variables are supplied (e.g., c("ADY", "AVISIT")), the first element is used as default in the plot.
- y_vars
`[character(1+)]`. A character vector of variable names for the y-axis. Each element must be a valid column name in the results dataset. Supported types are numeric (e.g. "PCHG", "CHG"). At least one valid variable is required.
- color_vars
`[character(1+) | NULL]`. Variable name(s) for color grouping (e.g., treatment arm).
- color_palette
`[named character(1+) | NULL]`. Custom color palette mapping factor levels to (hex) colors.
- tooltip
`[named character vector | NULL]`. Named character vector specifying tooltip content. Names are labels, values are column names. If NULL, defaults to using the subject ID variable for tooltips.
- facet_rows
`[character(1+) | NULL]`. Variable names for row faceting. (Splitting plot into subplots by rows)
- facet_cols
`[character(1+) | NULL]`. Variable names for column faceting. (Splitting plot into subplots by columns)
- title
`[character(1) | NULL]`. Main plot title.
- subtitle
`[character(1) | NULL]`. Plot subtitle for additional context.
- switch_func
`[function | NULL]`. Function to switch to a different module when a patient is selected.
- receiver_id
`[character(1) | NULL]`. Module ID that will receive patient selection events from this module.