Skip to contents

Creates edge data frame and adds formatting

Usage

create_edges(
  coefs,
  ndf,
  edge_options,
  coef_labels = FALSE,
  stand = FALSE,
  stars = NULL,
  sig = 1
)

Arguments

coefs

a coefficient table from lavaan model created by extract_coefs

ndf

A node data frame created by create_nodes

edge_options

a named list of graphviz edge attributes, or a data frame of edge options created by formatting, or a list of such data frames containing 1 set of edge options and one set of custom options

coef_labels

whether to label edges with coefficient values

stand

Should the coefficients being used be standardized coefficients

stars

a character vector indicating which parameters should include significance stars be included for regression paths, latent paths, or covariances. Include which of the 3 you want ("regress", "latent", "covs"), default is none.

sig

significance level for determining what significant paths are

Value

an edge data frame