plot.MxLISRELModel: Create and display a graphical path diagram for a LISREL...

plot.MxLISRELModelR Documentation

Create and display a graphical path diagram for a LISREL model.


plot.MxLISRELModel produces SEM diagrams using DiagrammeR::DiagrammeR() (or a graphviz application) to create the image.


## S3 method for class 'MxLISRELModel'
  x = NA,
  std = FALSE,
  fixed = TRUE,
  means = TRUE,
  digits = 2,
  file = "name",
  labels = c("none", "labels", "both"),
  resid = c("circle", "line", "none"),
  strip_zero = TRUE,



A LISREL mxModel() from which to make a path diagram


Whether to standardize the model (default = FALSE).


Whether to show fixed paths (defaults to TRUE)


Whether to show means or not (default = TRUE)


The number of decimal places to add to the path coefficients


The name of the dot file to write: NA = none; "name" = use the name of the model


Whether to show labels on the paths. both will show both the parameter and the label. ("both", "none" or "labels")


How to show residuals and variances default is "circle". Options are "line" & "none"


Whether to strip the leading "0" and decimal point from parameter estimates (default = TRUE)


Optional parameters


Note: By default, plots open in your browser (or plot pane if using RStudio).

Opening in an external editor/app

The underlying format is graphviz. If you use umx_set_plot_format("graphviz"), figures will open in a graphviz helper app (if installed). If you use graphviz, we try and use that app, but YOU HAVE TO INSTALL IT!

On MacOS, you may need to associate the ‘.gv’ extension with your graphviz app. Find the .gv file made by plot, get info (cmd-I), then choose “open with”, select (or OmniGraffle professional), then set “change all”.

The commercial application “OmniGraffle” is great for editing these images.


See Also

  • umx_set_plot_format(), umx_set_auto_plot(), umx_set_plot_format(), plot.MxModel(), umxPlotACE(), umxPlotCP(), umxPlotIP(), umxPlotGxE()

Other Plotting functions: ggAddR(), plot.MxModelTwinMaker(), plot.MxModel(), umxPlotACEcov(), umxPlotACEv(), umxPlotACE(), umxPlotCP(), umxPlotDoC(), umxPlotFun(), umxPlotGxEbiv(), umxPlotGxE(), umxPlotIP(), umxPlotSexLim(), umxPlotSimplex(), umxPlot(), umx


# plot()
# TODO get LISREL example model
# Figure out how to map its matrices to plot. Don't do without establishing demand.

umx documentation built on Nov. 17, 2023, 1:07 a.m.