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.
# 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
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”.
- 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
,
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
# 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