Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marios-mamalis/mca-visualisation

A script for automatic visualisation of Multiple Correspondence Analysis (MCA) results from FactoMineR in 3 dimensions using Plotly (exported as html)
https://github.com/marios-mamalis/mca-visualisation

3d-scatterplots correspondence-analysis data-analysis factominer html mca multiple-correspondence-analysis plotly visualisation

Last synced: about 4 hours ago
JSON representation

A script for automatic visualisation of Multiple Correspondence Analysis (MCA) results from FactoMineR in 3 dimensions using Plotly (exported as html)

Awesome Lists containing this project

README

        

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](https://user-images.githubusercontent.com/46795338/64366027-0c91f880-d01e-11e9-822b-473e771e0824.jpg)