
Plot distances using computed metrics of distance
plotDistances.RdPlot distances using computed metrics of distance
Usage
plotDistances(
metrics,
fit.index = "cfi",
n.clusters = "auto",
drop = NULL,
dist.method = NULL,
cutoff = FALSE,
weighted = TRUE,
shiny = FALSE
)Arguments
- metrics
Should be a result of
getMetrics- fit.index
Index to be used to in represneting measurement invariance distances. Only if the `metrics` argument is a `fit` metric. Can be anything returned by `lavaan::fitMeasures`
- n.clusters
Number of clusters.
- drop
Vector of group names to be dropped from the plot.
- dist.method
Method to compute distances.
- cutoff
Either logical or numeric. If FALSE (default), plots network based on pairwise comparisons based on a cutoff value. If TRUE, cutoff value is .01. If numeric, it is a custom cutoff value used to plot the edges between groups. If not FALSE, n.clusters and dist.method are ignored.
- weighted
Logical. If weighted graph should be created accounting for the size of fit increment. See
graph_from_adjacency_matrixfor details