Provides a normative summary for one or more subjects across multiple timepoints. Generates numeric histograms with subject lines colored by time, categorical barplots with subject highlight, and a combined Z-score barplot distinguishing timepoints. Histogram bounds exclude the subject(s) so that the display is reproducible if only one row changes.
longitudinalNormativeSummary(
data,
subject_idx,
columns,
idcolumn = "commonID",
timecol = "yearsbl",
sexcol = "commonSex",
agecol = "commonAge",
return_plot = FALSE,
verbose = FALSE
)
Data frame containing all subjects and measures.
Vector of row indices of the subjects of interest.
Vector of column names to summarize.
Name of subject ID column (default = "commonID").
Name of time variable (default = "yearsbl").
Name of sex column (default = "commonSex").
Name of age column (default = "commonAge").
Logical, whether to return the combined grid plot.
Logical, whether to print debugging info.
A list with:
List of numeric and categorical summaries, including Z-scores.
List of individual ggplot objects per column.
Z-score barplot across numeric columns and timepoints.
Combined gridExtra::arrangeGrob
object for all plots.