MDSnet: MDSnet

View source: R/MDSnet.R

MDSnetR Documentation

MDSnet

Description

Convenience function for converting a qgraph object to a layout determined by multidimensional scaling

Usage

MDSnet(
  qgraph_net,
  type = c("ordinal", "interval", "ratio", "mspline"),
  MDSadj = NULL,
  stressTxt = F,
  repulse = F,
  repulsion = 1,
  mdsArgs = list(),
  ...
)

Arguments

qgraph_net

an object of type qgraph

type

transformation function for MDS, defaults to "ordinal"

MDSadj

to use a proximities matrix other than the adjacency matrix stored in qgraph_net, provide it in this argument

stressTxt

logical. Print the stress value in the lower left corner of the plot?

repulse

logical. Add a small repulsion force with wordcloud package to avoid node overlap?

repulsion

scalar for the repulsion force. Larger values add more repulsion

mdsArgs

additional arguments in list format passed to smacof::mds

...

additional arguments passed to qgraph

Details

A network plotted with multidimensional scaling can be interpreted based on the distances between nodes. Nodes close together represent closely associated nodes, whereas nodes that are far apart represent unassociated or negatively associated nodes.

References

Jones, P. J., Mair, P., & McNally, R. J. (2018). Visualizing psychological networks: A tutorial in R. Frontiers in Psychology, 9, 1742. https://doi.org/10.3389/fpsyg.2018.01742


networktools documentation built on May 29, 2024, 11:47 a.m.