umx (version 1.9.1)

plot.MxModel: Create and display a graphical path diagram for a model.

Description

plot() produces SEM diagrams in graphviz format, and relies on DiagrammeR (or a graphviz application) to create the image. The commercial application “OmniGraffle” is great for editing these images.

Usage

# S3 method for MxModel
plot(x = NA, std = FALSE, digits = 2, file = "name",
  pathLabels = c("none", "labels", "both"), fixed = TRUE, means = TRUE,
  resid = c("circle", "line", "none"), showMeans = "deprecated",
  showFixed = "deprecated", ...)

Arguments

x

An mxModel from which to make a path diagram

std

Whether to standardize the model (default = FALSE).

digits

The number of decimal places to add to the path coefficients

file

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

pathLabels

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

fixed

Whether to show fixed paths (defaults to TRUE)

means

Whether to show means or not (default = TRUE)

resid

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

showMeans

Deprecated: just use 'means = TRUE'

showFixed

Deprecated: just use 'fixed = TRUE'

...

Optional parameters

Details

On unix and windows, plot() will create a pdf and open it in your default pdf reader.

Note: DiagrammeR is supported out of the box. By default, plots open in your browser.

If you use umx_set_plot_format("graphviz"), they 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 OS X we try and open an app: you may need to associate the ‘.gv’ extension with the graphviz app. Find the .gv file made by plot, get info (cmd-I), then choose “open with”, select graphviz.app (or OmniGraffle professional), then set “change all”.

References

- http://www.github.com/tbates/umx, https://en.wikipedia.org/wiki/DOT_(graph_description_language)

See Also

- umx_set_plot_format, plot.MxModel, umxPlotACE, umxPlotCP, umxPlotIP, umxPlotGxE,

Other Core Modelling Functions: umxDiagnose, umxLatent, umxMatrix, umxPath, umxRAM, umxReduceACE, umxReduceGxE, umxRun, umxSuperModel, umx

Other Plotting functions: umxPlotACEcov, umxPlotACEv, umxPlotACE, umxPlotCP, umxPlotGxE, umxPlotIP

Other Reporting functions: RMSEA.MxModel, RMSEA.summary.mxmodel, RMSEA, extractAIC.MxModel, loadings, residuals.MxModel, umxCI_boot, umxCI, umxCompare, umxConfint, umxExpCov, umxExpMeans, umxFitIndices, umxPlotACEcov, umxPlotACEv, umxPlotACE, umxPlotCP, umxPlotGxE, umxPlotIP, umxSummary.MxModel, umxSummaryACEv, umxSummaryACE, umx_drop_ok, umx_standardize_RAM

Other Twin Modeling Functions: umxACESexLim, umxACE_cov_fixed, umxACEcov, umxACEv, umxACE, umxCF_SexLim, umxCP, umxGxE_window, umxGxE, umxIP, umxPlotACEcov, umxPlotCP, umxPlotGxE, umxPlotIP, umxReduceACE, umxSummaryACEcov, umxSummaryACEv, umxSummaryACE, umxSummaryCP, umxSummaryGxE, umxSummaryIP, umx_long2wide, umx_wide2long, umx, xmu_twin_check

Examples

Run this code
# NOT RUN {
require(umx)
data(demoOneFactor)
latents  = c("G")
manifests = names(demoOneFactor)
m1 <- umxRAM("One Factor", data = mxData(cov(demoOneFactor), type = "cov", numObs = 500),
	umxPath(latents, to = manifests),
	umxPath(var = manifests),
	umxPath(var = latents, fixedAt = 1.0)
)
plot(m1)
# }

Run the code above in your browser using DataCamp Workspace