Create graphical path diagrams from your OpenMx models!
# 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", ...)
An mxModel
from which to make a path diagram
Whether to standardize the model (default = FALSE).
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")
Whether to show fixed paths (defaults to TRUE)
Whether to show means or not (default = TRUE)
How to show residuals and variances default is "circle". Options are "line" & "none"
Deprecated: just use 'means = TRUE'
Deprecated: just use 'fixed = TRUE'
Optional parameters
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.
On unix and windows, plot() will create a pdf and open it in your default pdf reader.
If you use umx_set_plot_format("graphviz"), files will open in with a graphviz helper.
Note: DiagrammeR is supported out of the box. 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”.
- http://www.github.com/tbates/umx, https://en.wikipedia.org/wiki/DOT_(graph_description_language)
- umx_set_plot_format
, plot.MxModel
, umxPlotACE
, umxPlotCP
, umxPlotIP
, umxPlotGxE
,
Other Core Modelling Functions: umxDiagnose
,
umxLatent
, umxMatrix
,
umxPath
, umxRAM
,
umxReduce
, umxRun
,
umx
Other Plotting functions: umxPlotACEcov
,
umxPlotACE
, umxPlotCP
,
umxPlotGxE
, umxPlotIP
Other Reporting functions: RMSEA.MxModel
,
RMSEA.summary.mxmodel
, RMSEA
,
confint.MxModel
,
extractAIC.MxModel
, loadings
,
logLik.MxModel
,
residuals.MxModel
,
umxCI_boot
, umxCI
,
umxCompare
, umxExpCov
,
umxExpMeans
, umxFitIndices
,
umxPlotACEcov
, umxPlotACE
,
umxPlotCP
, umxPlotGxE
,
umxPlotIP
,
umxSummary.MxModel
,
umxSummaryACE
, umx_drop_ok
,
umx_standardize_RAM
Other Twin Modeling Functions: umxACESexLim
,
umxACEcov
, umxACE
,
umxCF_SexLim
, umxCP
,
umxGxE_window
, umxGxE
,
umxIP
, umxPlotACEcov
,
umxPlotCP
, umxPlotGxE
,
umxPlotIP
, umxSummaryACEcov
,
umxSummaryACE
, umxSummaryCP
,
umxSummaryGxE
, umxSummaryIP
,
umx
# 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 DataLab