Constructs the DOT script for the SEM path diagram, now including correlations between constructs (not just exogenous ones). Correctly handles drawing only one edge per correlation.
buildDotCode(
title,
graph_attrs,
constructs,
r2_values,
measurement_edge_fun,
path_coefficients,
path_p_values,
correlations,
plot_significances,
plot_correlations,
plot_structural_model_only,
plot_labels,
is_second_order = FALSE,
model_measurement = NULL,
model_error_cor = NULL,
construct_correlations = NULL,
indicator_correlations = NULL
)
A character string containing the complete DOT code.
The title of the plot.
Optional graph attributes.
A vector of constructs.
Named vector of R2 values.
Function to generate measurement edge code.
Matrix/data frame of path coefficients.
Named vector of path p-values. Used for construct correlations too.
List containing correlations (exogenous and indicator).
Logical. Whether to display significance levels.
Option for indicator correlations ("none", "exo", or "all").
Logical. Whether to display only the structural model.
Logical. Whether the model is second-order.
a matrix. The measurement matrix.
a matrix.
A matrix. The construct correlation matrix.
A matrix. The indicator correlation matrix.