node_regionplot_longitudinal: Region Plot Panel for Longitudinal GRM Tree Nodes

View source: R/long-grmtree-plot.R

node_regionplot_longitudinalR Documentation

Region Plot Panel for Longitudinal GRM Tree Nodes

Description

Internal function that generates the terminal node panel function for region plots of longitudinal GRM trees. Extracts only T1 item thresholds (items 1 through n_items) since T2 items have identical constrained parameters.

Usage

node_regionplot_longitudinal(
  mobobj,
  n_items,
  names = FALSE,
  abbreviate = TRUE,
  ylim = NULL,
  off = 0.1,
  col_fun = grDevices::gray.colors,
  bg = "white",
  ylines = 2,
  ...
)

Arguments

mobobj

A longitudinal_grmtree object.

n_items

Number of items per time point.

names

Logical, character vector, or FALSE for labeling.

abbreviate

Logical or numeric for name abbreviation.

ylim

Optional y-axis limits.

off

Offset between items (default: 0.1).

col_fun

Color function for response categories (default: gray.colors).

bg

Background color (default: "white").

ylines

Width of y-axis margin in lines (default: 2).

...

Additional arguments (unused).

Value

A panel function suitable for use with plot.modelparty.


grmtree documentation built on Sept. 2, 2026, 1:07 a.m.