plotDistances: Plot distances using computed measures of distance

View source: R/server.functions.R

plotDistancesR Documentation

Plot distances using computed measures of distance

Description

Plot distances using computed measures of distance

Usage

plotDistances(
  measures,
  n.clusters = "auto",
  fit.index = "cfi",
  drop = NULL,
  dist.method = NULL,
  shiny = FALSE
)

Arguments

measures

Can be result of 'MGCFAparameters', 'computeCovariance', 'computeCorrelation', 'incrementalFit'.

n.clusters

Number of clusters.

fit.index

Index to be used to in represneting measurement invariance distances. Only if the 'measures' argument is an output of 'incrementalFit'. Can be anything returned by 'lavaan::fitMeasures'

drop

Vector of group names to be dropped from the plot.

dist.method

Method to compute distances.

Value

Computes distances and performs multidimensional scaling (two-dimensional projection). Returns ggplot-based plot.

See Also

plotCutoff


MaksimRudnev/MIE.package documentation built on March 5, 2024, 1:24 p.m.