umxPlotSimplex: Draw and display a graphical figure of a simplex model

View source: R/umx_build_umxSimplex.R

umxPlotSimplexR Documentation

Draw and display a graphical figure of a simplex model

Description

Options include digits (rounding), showing means or not, and which output format is desired.

Usage

umxPlotSimplex(
  x = NA,
  file = "name",
  digits = 2,
  means = FALSE,
  std = TRUE,
  format = c("current", "graphviz", "DiagrammeR"),
  strip_zero = TRUE,
  ...
)

Arguments

x

The umxSimplex() model to display graphically

file

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

digits

How many decimals to include in path loadings (defaults to 2)

means

Whether to show means paths (defaults to FALSE)

std

Whether to standardize the model (defaults to TRUE)

format

= c("current", "graphviz", "DiagrammeR")

strip_zero

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

...

Optional additional parameters

Value

  • Optionally return the dot code

See Also

  • plot(), umxSummary() work for IP, CP, GxE, SAT, simplex, ACEv, or ACE model.

  • umxSimplex()

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

Examples

## Not run: 
data(iqdat)
mzData = subset(iqdat, zygosity == "MZ")
dzData = subset(iqdat, zygosity == "DZ")
selDVs = c("IQ_age1", "IQ_age2", "IQ_age3", "IQ_age4")
m1 = umxSimplex(selDVs = selDVs, sep = "_T", dzData = dzData, mzData = mzData)
# plot(m1)

## End(Not run)

tbates/umx documentation built on Dec. 14, 2024, 11:28 a.m.