Skip to contents

Delegates to plot.multiLCA from multilevLCA, which draws the class-specific item-response probability profiles from the Step-1 measurement model.

Usage

# S3 method for class 'tseLCA_measurement'
plot(x, horiz = FALSE, clab = NULL, ...)

# S3 method for class 'tseLCA_covariate'
plot(x, horiz = FALSE, clab = NULL, ...)

# S3 method for class 'tseLCA_distal'
plot(x, horiz = FALSE, clab = NULL, ...)

# S3 method for class 'tseLCA_both'
plot(x, horiz = FALSE, clab = NULL, ...)

Arguments

x

A tseLCA object returned by three_step().

horiz

Logical. If TRUE, item labels are drawn horizontally.

clab

Optional character vector of length T giving class labels.

...

Further arguments passed to plot.multiLCA.

Value

Called for its side effect (a base-graphics plot). Invisibly returns NULL.

Examples

d    <- generate_data(100, "high", "covariate", seed = 1)
fit_m <- three_step(d, paste0("Y", 1:6), n_classes = 3)
plot(fit_m)


# \donttest{
# Custom class labels
plot(fit_m, clab = c("Low risk", "Mixed", "High risk"))

# }