Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/marios-mamalis/mca-visualisation
- Owner: Marios-Mamalis
- License: gpl-3.0
- Created: 2019-06-18T11:24:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-05T10:12:58.000Z (over 4 years ago)
- Last Synced: 2024-11-13T17:48:07.666Z (2 months ago)
- Topics: 3d-scatterplots, correspondence-analysis, data-analysis, factominer, html, mca, multiple-correspondence-analysis, plotly, visualisation
- Language: R
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 IndividualsUsage
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 SquaredExample output:
![Example Result](https://user-images.githubusercontent.com/46795338/64366027-0c91f880-d01e-11e9-822b-473e771e0824.jpg)