Learn R Programming

lavaanPlot (version 0.8.1)

formatting: Enables conditional formatting for different parts of the model

Description

Enables conditional formatting for different parts of the model

Usage

formatting(..., type, groups)

Value

a formatting data frame that can work with the create_nodes and create_edges functions

Arguments

...

lists of node or edge options for each of the groups

type

type of conditional formatting being used, node, edge, or custom; custom only works with edges

groups

character vector of the names of custom groups, with nodes and edges default values are set and you need to match the order: for nodes: c("latent", "obs"), for edges: c("regress", "latent", "covs"). For custom groups of edges, you must match names that you pre-multiply with coefficients in your model specification.