| plot | R Documentation |
It plots the models from either the lavaan model or meta, wls,
osmasem, and sem (mxsem) objects.
## S3 method for class 'meta'
plot(x, effect.sizes, add.margin = 0.1, interval = 0.95,
main = "Effect Sizes and their Confidence Ellipses",
axis.labels = paste("Effect size ", effect.sizes,
sep = ""), study.col = "black", study.pch = 19,
study.min.cex = 0.8, study.weight.plot = FALSE,
study.ellipse.plot = TRUE, study.ellipse.col = "black",
study.ellipse.lty = 2, study.ellipse.lwd = 0.5,
estimate.col = "blue", estimate.pch = 18, estimate.cex = 2,
estimate.ellipse.plot = TRUE, estimate.ellipse.col = "red",
estimate.ellipse.lty = 1, estimate.ellipse.lwd = 2,
randeff.ellipse.plot = TRUE, randeff.ellipse.col = "green",
randeff.ellipse.lty = 1, randeff.ellipse.lwd = 2,
univariate.plot = TRUE, univariate.lines.col = "gray",
univariate.lines.lty = 3, univariate.lines.lwd = 1,
univariate.polygon.width = 0.02, univariate.polygon.col = "red",
univariate.arrows.col = "green", univariate.arrows.lwd = 2,
diag.panel = FALSE, xlim = NULL, ylim = NULL, ...)
## S3 method for class 'character'
plot(x, fixed.x = FALSE, nCharNodes = 0, nCharEdges = 0,
layout = c("tree", "circle", "spring", "tree2",
"circle2"), sizeMan = 8, sizeLat = 8, edge.label.cex = 1.3,
color = "white", ...)
## S3 method for class 'wls'
plot(x, manNames = NULL, latNames = NULL, labels = c("labels",
"RAM"), what = "est", nCharNodes = 0, nCharEdges = 0,
layout = c("tree", "circle", "spring", "tree2",
"circle2"), sizeMan = 8, sizeLat = 8, edge.label.cex = 1.3,
color = "white", weighted = FALSE, ...)
## S3 method for class 'osmasem'
plot(x, manNames = NULL, latNames = NULL, labels = c("labels",
"RAM"), what = "est", nCharNodes = 0, nCharEdges = 0,
layout = c("tree", "circle", "spring", "tree2",
"circle2"), sizeMan = 8, sizeLat = 8, edge.label.cex = 1.3,
color = "white", weighted = FALSE, ...)
## S3 method for class 'osmasem2'
plot(x, manNames = NULL, latNames = NULL, labels = c("labels",
"RAM"), what = "est", nCharNodes = 0, nCharEdges = 0,
layout = c("tree", "circle", "spring", "tree2",
"circle2"), sizeMan = 8, sizeLat = 8, edge.label.cex = 1.3,
color = "white", weighted = FALSE, ...)
## S3 method for class 'mxsem'
plot(x, manNames = NULL, latNames = NULL, labels = c("labels",
"RAM"), what = "est", nCharNodes = 0, nCharEdges = 0,
layout = c("tree", "circle", "spring", "tree2",
"circle2"), sizeMan = 8, sizeLat = 8, edge.label.cex = 1.3,
color = "white", weighted = FALSE, group = NULL,
level = NULL, combine = missing(group) && missing(level),
main.line = 2.5, main.adj = NULL, ...)
x |
An object returned from either a lavaan model class
|
effect.sizes |
Numeric values indicating which effect sizes to be
plotted. At least two effect sizes are required. To plot the effect sizes of
|
add.margin |
Value for additional margins on the left and bottom margins. |
interval |
Interval for the confidence ellipses. |
main |
Main title of each plot. If there are multiple plots, a vector of character titles may be used. |
axis.labels |
Labels for the effect sizes. |
study.col |
The color for individual studies. See |
study.pch |
Plotting character of individual studies. See |
study.min.cex |
The minimum value of cex for individual studies. See
|
study.weight.plot |
Logical. If |
study.ellipse.plot |
Logical. If |
study.ellipse.col |
The color of the confidence ellipses of individual
studies. See |
study.ellipse.lty |
The line type of the confidence ellipse of
individual studies. See |
study.ellipse.lwd |
The line width of the confidence ellipse of
individual studies. See |
estimate.col |
The color of the estimated effect size. See |
estimate.pch |
Plotting character of the estimated effect sizes. See
|
estimate.cex |
The amount of plotting of the estimated effect sizes.
See |
estimate.ellipse.plot |
Logical. If |
estimate.ellipse.col |
The color of the confidence ellipse of the
estimated effect sizes. See |
estimate.ellipse.lty |
The line type of the confidence ellipse of the
estimated effect sizes. See |
estimate.ellipse.lwd |
The line width of the confidence ellipse of the
estimated effect sizes. See |
randeff.ellipse.plot |
Logical. If |
randeff.ellipse.col |
Color of the confidence ellipses of the random
effects. See |
randeff.ellipse.lty |
The line type of the confidence ellipses of the
random effects. See |
randeff.ellipse.lwd |
The line width of the confidence ellipses of the
random effects. See |
univariate.plot |
Logical. If |
univariate.lines.col |
The color of the estimated univariate effect
sizes. See |
univariate.lines.lty |
The line type of the estimated univariate effect
sizes. See |
univariate.lines.lwd |
The line width of the estimated univariate
effect sizes. See |
univariate.polygon.width |
The width of the polygon of the estimated univariate effect sizes. |
univariate.polygon.col |
The color of the polygon of the estimated univariate effect sizes. |
univariate.arrows.col |
The color of the arrows of the estimated univariate effect sizes. |
univariate.arrows.lwd |
The line width of the arrows of the estimated univariate effect sizes. |
diag.panel |
Logical. If |
xlim |
NULL or a numeric vector of length 2; if it is NULL, it provides defaults estimated from the data. |
ylim |
NULL or a numeric vector of length 2; if it is NULL, it provides defaults estimated from the data. |
fixed.x |
Argument passed to |
manNames |
Names of the observed nodes, in the row order of the RAM
filter matrix F. If
|
latNames |
Names of the latent nodes, in RAM variable order. If
|
labels |
For path diagrams, either |
what |
Argument passed to |
nCharNodes |
Argument passed to |
nCharEdges |
Argument passed to |
layout |
Argument passed to |
color |
Argument passed to |
sizeMan |
Argument passed to |
sizeLat |
Argument passed to |
edge.label.cex |
Argument passed to |
weighted |
Argument passed to |
group |
For |
level |
For |
combine |
For |
main.line |
For |
main.adj |
For |
... |
Further arguments passed to the methods. |
For mxsem objects, a path set by a definition variable
(data.*), either directly or through a constraint substituted with
replace.constraints=TRUE, is shown at the mean of the variable in
the level-1 data of the group plotted. It is not shown for summary input,
which has no definition variables. In estimate and standardized diagrams,
exactly zero paths use a tiny nonzero graphical weight so they remain
visible; the fitted model's estimates are unchanged. The filter matrix F
must select distinct observed variables for these plots.
For osmasem and osmasem2 objects, matrices and implied
covariances are evaluated at the means of definition variables in the
fitted data, after any row selection. For older osmasem2 objects
without a saved RAM specification, matrix names are recovered from
Fmatrix.
The estimated effect sizes and random effects are based on the labels Intercept1, Intercept2, ... and Tau2_1_1, Tau2_2_1, Tau2_2_2, etc. At least two effect sizes are required for this function.
Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>
Cheung, M. W.-L. (2013). Multivariate meta-analysis as structural equation models. Structural Equation Modeling, 20, 429-454.
Berkey98, wvs94a
meta2semPlot semPaths
## lavaan model
model <- "y ~ m + x
m ~ x"
plot(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.