Skip to contents

Plot from a fitted dsem model

Usage

# S3 method for class 'dsem'
plot(
  x,
  y,
  edge_label = c("name", "value", "value_and_stars"),
  digits = 2,
  style = c("igraph", "ggraph"),
  ...
)

Arguments

x

Output from dsem

y

Not used

edge_label

Whether to plot parameter names, estimated values, or estimated values along with stars indicating significance at 0.05, 0.01, or 0.001 levels (based on two-sided Wald tests)

digits

integer indicating the number of decimal places to be used

style

Whether to make a graph using igraph or ggraph

...

arguments passed to plot.igraph

Value

Invisibly returns the output from graph_from_data_frame which was passed to plot.igraph for plotting.

Details

This function coerces output from a graph and then plots the graph.