makeDiagram | R Documentation |
Make diagram euation
makeDiagram(
fit,
labels = NULL,
graphOptions = list(rankdir = "LR", ranksep = "0.75", nodesep = "0.25", overlap =
"true", fontsize = "10"),
nodeOptions = list(),
edgeOptions = list(color = "black"),
whatLabels = "std",
mediationOnly = FALSE,
regression = TRUE,
indirect = FALSE,
secondIndirect = FALSE,
total = FALSE,
residuals = FALSE
)
fit |
A data.frame. Result of parameterEstimates function of package lavaan |
labels |
An optional named list of variable labels fit object of class lavaan |
graphOptions |
A named list of graph options for Diagrammer syntax |
nodeOptions |
A named list of node options for Diagrammer syntax |
edgeOptions |
A named list of edge options for Diagrammer syntax. |
whatLabels |
What should the edge labels indicate in the path diagram? Choices are c("est","std","name"). |
mediationOnly |
Whether or not draw mediation effect only. Default value is FALSE. |
regression |
Whether or not draw regression. Default value is TRUE. |
indirect |
Whether or not draw indirect effects. Default value is FALSE. |
secondIndirect |
Whether or not draw 2nd indirect effects. Default value is FALSE. |
total |
Whether or not draw total effect. Default value is FALSE. |
residuals |
Logical, should residuals (and variances) be included in the path diagram? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.