Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juba/explor
Interfaces for Multivariate Analysis in R
https://github.com/juba/explor
cran htmlwidgets multivariate-analysis r shiny
Last synced: about 1 month ago
JSON representation
Interfaces for Multivariate Analysis in R
- Host: GitHub
- URL: https://github.com/juba/explor
- Owner: juba
- Created: 2015-01-16T09:32:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-09-28T07:33:18.000Z (over 1 year ago)
- Last Synced: 2024-11-30T22:52:47.580Z (about 1 month ago)
- Topics: cran, htmlwidgets, multivariate-analysis, r, shiny
- Language: R
- Homepage: https://juba.github.io/explor/
- Size: 7.19 MB
- Stars: 193
- Watchers: 13
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - juba/explor - Interfaces for Multivariate Analysis in R (R)
README
# explor
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version-ago/explor)](https://cran.r-project.org/package=explor)
[![DOI](https://zenodo.org/badge/29341839.svg)](https://zenodo.org/badge/latestdoi/29341839)
![CRAN Downloads](https://cranlogs.r-pkg.org/badges/last-month/explor)
[![R build status](https://github.com/juba/explor/workflows/R-CMD-check/badge.svg)](https://github.com/juba/explor/actions?query=workflow%3AR-CMD-check)`explor` is an R package to allow interactive exploration of multivariate analysis results.
For now on, it is usable with the following function results:
Analysis | Function | Package | Notes
------------- | ------------- | ---------- | --------
Principal Component Analysis | PCA | [FactoMineR](http://factominer.free.fr/) | -
Correspondance Analysis | CA | [FactoMineR](http://factominer.free.fr/) | -
Multiple Correspondence Analysis | MCA | [FactoMineR](http://factominer.free.fr/) | -
Principal Component Analysis | dudi.pca | [ade4](https://cran.r-project.org/package=ade4) | Qualitative supplementary variables are ignored
Correspondance Analysis | dudi.coa | [ade4](https://cran.r-project.org/package=ade4) | -
Multiple Correspondence Analysis | dudi.acm | [ade4](https://cran.r-project.org/package=ade4) | Quantitative supplementary variables are ignored
Specific Multiple Correspondance Analysis | speMCA | [GDAtools](https://cran.r-project.org/package=GDAtools) | -
Multiple Correspondance Analysis | mca | [MASS](https://cran.r-project.org/package=MASS) | Quantitative supplementary variables are not supported
Principal Component Analysis | princomp | stats | Supplementary variables are ignored
Principal Component Analysis | prcomp | stats | Supplementary variables are ignored
Correspondance Analysis | textmodel_ca | [quanteda.textmodels](https://cran.r-project.org/package=quanteda.textmodels) | Only coordinates are available## Features
For each type of analysis, `explor` launches a `shiny` interactive interface which is displayed inside RStudio or in your system Web browser. This interface provides both numerical results as dynamic tables (sortable and searchable thanks to the `DT` package) and interactive graphics thanks to the [scatterD3](https://github.com/juba/scatterD3) package. You can zoom, drag labels, hover points to display tooltips, hover legend items to highlights points, and the graphics are fully updatable with animations which can give some visual clues. You can also export the current plot as an SVG file or get the R code to reproduce it later in a script or document.
Here is a preview of what you will get. Note that the interface is available both in english and french, depending on your locale :
![](https://raw.github.com/juba/explor/master/resources/screencast_0.3.gif)
## Installation
To get the stable version from CRAN:
```r
install.packages("explor")
```To install the latest dev version from GitHub:
```r
install.packages("remotes") # If necessary
remotes::install_github("juba/scatterD3")
remotes::install_github("juba/explor")
```
## UsageUsage is very simple : you just apply the `explor` function to the result of one of the supported analysis functions.
Example with a principal correspondence analysis from `FactoMineR::PCA`:
```r
library(FactoMineR)
library(explor)data(decathlon)
pca <- PCA(decathlon[,1:12], quanti.sup = 11:12, graph = FALSE)
explor(pca)
```Example with a multiple correspondence analysis from `FactoMineR::MCA`:
```r
data(hobbies)
mca <- MCA(hobbies[1:1000,c(1:8,21:23)],quali.sup = 9:10, quanti.sup = 11, ind.sup = 1:100)
explor(mca)
```## Documentation and localization
Two vignettes are provided for more detailed documentation:
- [English introduction vignette](https://juba.github.io/explor/articles/introduction_en.html)
- [French introduction vignette](https://juba.github.io/explor/articles/introduction_fr.html)Depending on your system locale settings, the interface is displayed either in english or in french (other languages can be easily added).