Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.31 KB

README.md

File metadata and controls

32 lines (21 loc) · 1.31 KB

Visualisation of Multiple Correspondence Analysis (MCA) results from FactoMineR using Plotly

Summary

This is a script for automatic visualisation of MCA results from FactoMineR in 3 dimensions using Plotly (exported as html). It contains a function called plotfun() that transforms the results of FactoMineR's MCA function FactoMineR::MCA() to a structure that can be used by Plotly, and then creates and exports in html format six 3d scatterplots, namely:

  • Contributions of Categories
  • Contributions of Individuals
  • Coordinates of Categories
  • Coordinates of Individuals
  • Cosine Squared of Categories
  • Cosine Squared of Individuals

Usage

The function, in order to work, must be supplied with two arguments:

  1. A list that contains the results of an MCA function of FactoMineR
  2. One of three valid plotting methods of Plotly's 3d scatterplot ("lines", "markers" or "linesmarkers").

ex. plotfun(results.MCA, "lines")

Results

The 3d scatterplots' axes are:

  • x-dimension: The dimension
  • y-dimension: Name of Category or Individual
  • z-dimension: The value of each dimension for either Contributions, Coordinates or Cosine Squared

Example output:

Example Result