[![Build Status](https://api.travis-ci.org/kassambara/factoextra.png)](https://travis-ci.org/kassambara/factoextra) [![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/factoextra)](https://cran.r-project.org/package=factoextra) [![Downloads](http://cranlogs.r-pkg.org/badges/factoextra)](https://cran.r-project.org/package=factoextra) [![Total Downloads](http://cranlogs.r-pkg.org/badges/grand-total/factoextra?color=orange)](http://cranlogs.r-pkg.org/badges/grand-total/factoextra) [![Project Status: Active - The project has reached a stable, usable state and is being actively developed.](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) [![Pending Pull-Requests](http://githubbadges.herokuapp.com/kassambara/factoextra/pulls.svg?style=flat)](https://github.com/kassambara/factoextra/pulls) [![Github Issues](http://githubbadges.herokuapp.com/kassambara/factoextra/issues.svg)](https://github.com/kassambara/factoextra/issues)
factoextra : Extract and Visualize the Results of Multivariate Data Analyses
============================================================================
[**factoextra**](http://www.sthda.com/english/rpkgs/factoextra) is an R package making easy to *extract* and *visualize* the output of exploratory **multivariate data analyses**, including:
1. [Principal Component Analysis (PCA)](http://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/), which is used to summarize the information contained in a continuous (i.e, quantitative) multivariate data by reducing the dimensionality of the data without loosing important information.
2. [Correspondence Analysis (CA)](http://www.sthda.com/english/wiki/correspondence-analysis-in-r-the-ultimate-guide-for-the-analysis-the-visualization-and-the-interpretation-r-software-and-data-mining), which is an extension of the principal component analysis suited to analyse a large contingency table formed by two *qualitative variables* (or categorical data).
3. [Multiple Correspondence Analysis (MCA)](http://www.sthda.com/english/wiki/multiple-correspondence-analysis-essentials-interpretation-and-application-to-investigate-the-associations-between-categories-of-multiple-qualitative-variables-r-software-and-data-mining), which is an adaptation of CA to a data table containing more than two categorical variables.
4. [Multiple Factor Analysis (MFA)](http://www.sthda.com/english/rpkgs/factoextra/reference/fviz_mfa.html) dedicated to datasets where variables are organized into groups (qualitative and/or quantitative variables).
5. [Hierarchical Multiple Factor Analysis (HMFA)](http://www.sthda.com/english/rpkgs/factoextra/reference/fviz_hmfa.html): An extension of MFA in a situation where the data are organized into a hierarchical structure.
6. [Factor Analysis of Mixed Data (FAMD)](http://www.sthda.com/english/rpkgs/factoextra/reference/fviz_famd.html), a particular case of the MFA, dedicated to analyze a data set containing both quantitative and qualitative variables.
There are a number of R packages implementing principal component methods. These packages include: *FactoMineR*, *ade4*, *stats*, *ca*, *MASS* and *ExPosition*.
However, the result is presented differently according to the used packages. To help in the interpretation and in the visualization of multivariate analysis - such as cluster analysis and dimensionality reduction analysis - we developed an easy-to-use R package named [factoextra](http://www.sthda.com/english/rpkgs/factoextra).
- The R package **factoextra** has flexible and easy-to-use methods to extract quickly, in a human readable standard data format, the analysis results from the different packages mentioned above.
- It produces a **ggplot2**-based **elegant data visualization** with less typing.
- It contains also many functions facilitating clustering analysis and visualization.
> We'll use i) the FactoMineR package (Sebastien Le, et al., 2008) to compute PCA, (M)CA, FAMD, MFA and HCPC; ii) and the factoextra package for extracting and visualizing the results.
The figure below shows methods, which outputs can be visualized using the factoextra package. The official online documentation is available at: <http://www.sthda.com/english/rpkgs/factoextra>.
![factoextra R package](tools/factoextra-r-package.png)
Why using factoextra?
---------------------
1. The *factoextra* R package can handle the results of PCA, CA, MCA, MFA, FAMD and HMFA from several packages, for extracting and visualizing the most important information contained in your data.
2. *After PCA, CA, MCA, MFA, FAMD and HMFA, the most important row/column elements* can be highlighted using :
- their cos2 values corresponding to their quality of representation on the factor map
- their contributions to the definition of the principal dimensions.
<span class="success">If you want to do this, the factoextra package provides a convenient solution.</span>
1. *PCA and (M)CA are used sometimes for prediction problems* : one can predict the coordinates of new supplementary variables (quantitative and qualitative) and supplementary individuals using the information provided by the previously performed PCA or (M)CA. This can be done easily using the [FactoMineR](http://www.sthda.com/english/articles/31-principal-component-methods-in-r-practical-guide/112-pca-principal-component-analysis-essentials/) package.
<span class="success">If you want to make predictions with PCA/MCA and to visualize the position of the supplementary variables/individuals on the factor map using ggplot2: then factoextra can help you. It's quick, write less and do more...</span>
1. *Several functions from different packages - FactoMineR, ade4, ExPosition, stats - are available in R for performing PCA, CA or MCA*. However, The components of the output vary from package to package.
<span class="success">No matter the package you decided to use, factoextra can give you a human understandable output.</span>
Installing FactoMineR
---------------------
The FactoMineR package can be installed and loaded as follow:
``` r
# Install
install.packages("FactoMineR")
# Load
library("FactoMineR")
```
Installing and loading factoextra
---------------------------------
- factoextra can be installed from [CRAN](https://cran.r-project.org/package=factoextra) as follow:
``` r
install.packages("factoextra")
```
- Or, install the latest version from [Github](https://github.com/kassambara/factoextra)
``` r
if(!require(devtools)) install.packages("devtools")
devtools::install_github("kassambara/factoextra")
```
- Load factoextra as follow :
``` r
library("factoextra")
#> Loading required package: ggplot2
#> Welcome! Want to learn more? See two factoextra-related books at https://goo.gl/ve3WBa
```
Main functions in the factoextra package
----------------------------------------
<span class="warning">See the online documentation (<http://www.sthda.com/english/rpkgs/factoextra>) for a complete list.</span>
### Visualizing dimension reduction analysis outputs
<table style="width:97%;">
<colgroup>
<col width="13%" />
<col width="83%" />
</colgroup>
<thead>
<tr class="header">
<th>Functions</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><em>fviz_eig (or fviz_eigenvalue)</em></td>
<td>Extract and visualize the eigenvalues/variances of dimensions.</td>
</tr>
<tr class="even">
<td><em>fviz_pca</em></td>
<td>Graph of individuals/variables from the output of <em>Principal Component Analysis</em> (PCA).</td>
</tr>
<tr class="odd">
<td><em>fviz_ca</em></td>
<td>Graph of column/row variables from the output of <em>Correspondence Analysis</em> (CA).</td>
</tr>
<tr class="even">
<td><em>fviz_mca</em></td>
<td>Graph of individuals/variables from the output of <em>Multiple Correspondence Analysis</em> (MCA).</td>
</tr>
<tr class="odd">
<td><em>fviz_mfa</em></td>
<td>Graph of individuals/variable
没有合适的资源?快使用搜索试试~ 我知道了~
factoextra:提取和可视化多元数据分析的结果
共277个文件
png:136个
html:40个
r:38个
需积分: 42 3 下载量 184 浏览量
2021-05-02
11:39:23
上传
评论 2
收藏 13.86MB ZIP 举报
温馨提示
factoextra:提取和可视化多元数据分析的结果 是一个R软件包,可轻松提取和可视化探索性多元数据分析的输出,包括: ,用于通过减少数据的维数而不丢失重要信息来汇总连续(即定量)多元数据中包含的信息。 是主成分分析的扩展,适用于分析由两个定性变量(或分类数据)形成的大型列联表。 ,是CA对包含两个以上分类变量的数据表的一种改编。 变量专用于将变量组织为组(定性和/或定量变量)的数据集。 :在将数据组织成分层结构的情况下MFA的扩展。 MFA的特殊情况 ,专用于分析包含定量和定性变量的数据集。 有许多R包实现主成分方法。 这些软件包包括: FactoMineR , ade4 , stats , ca , MASS和ExPosition 。 但是,结果根据所使用的软件包而有所不同。 为了帮助多变量分析(例如聚类分析和降维分析)的解释和可视化,我们开发了一个易于使用的R
资源推荐
资源详情
资源评论
收起资源包目录
factoextra:提取和可视化多元数据分析的结果 (277个子文件)
docsearch.css 11KB
pkgdown.css 5KB
DESCRIPTION 2KB
.gitignore 39B
.gitignore 10B
.gitignore 10B
.Rapp.history 260B
index.html 50KB
fviz_mca.html 31KB
fviz_pca.html 26KB
facto_summarize.html 25KB
fviz_ca.html 24KB
fviz_mfa.html 24KB
index.html 24KB
fviz_hmfa.html 21KB
fviz.html 20KB
fviz_contrib.html 19KB
fviz_nbclust.html 18KB
get_mfa.html 17KB
fviz_cluster.html 17KB
fviz_famd.html 17KB
fviz_cos2.html 17KB
get_mca.html 16KB
fviz_dend.html 16KB
get_hmfa.html 16KB
eclust.html 16KB
eigenvalue.html 16KB
index.html 15KB
fviz_ellipses.html 15KB
hkmeans.html 15KB
get_pca.html 14KB
fviz_silhouette.html 14KB
get_ca.html 14KB
get_famd.html 13KB
hcut.html 13KB
get_clust_tendency.html 12KB
fviz_mclust.html 12KB
fviz_add.html 11KB
dist.html 11KB
deprecated.html 10KB
decathlon2.html 7KB
print.factoextra.html 7KB
multishapes.html 7KB
poison.html 7KB
housetasks.html 7KB
authors.html 5KB
404.html 4KB
pkgdown.js 3KB
docsearch.js 2KB
extra.js 507B
extra.js 507B
NEWS.md 11KB
cran-comments.md 471B
README.md 26KB
NAMESPACE 2KB
CA.pdf 587KB
PCA.pdf 499KB
fviz_pca-1.png 275KB
fviz_mfa-3.png 274KB
factoextra-r-package.png 256KB
factoextra-r-package.png 256KB
hkmeans-3.png 252KB
fviz_cluster-1.png 251KB
hcut-3.png 251KB
fviz_silhouette-1.png 247KB
eclust-1.png 239KB
fviz_cluster-2.png 236KB
dist-1.png 231KB
fviz_mca-9.png 228KB
fviz_hmfa-3.png 228KB
fviz_mfa-8.png 210KB
fviz_hmfa-7.png 207KB
fviz_mfa-6.png 197KB
fviz_pca-8.png 179KB
decathlon2-1.png 177KB
poison-1.png 176KB
hcut-1.png 167KB
fviz_mfa-5.png 165KB
fviz_pca-3.png 152KB
multishapes-1.png 148KB
fviz_dend-5.png 148KB
fviz_pca-4.png 146KB
fviz_mca-2.png 137KB
hkmeans-2.png 133KB
fviz_dend-6.png 133KB
fviz_add-2.png 129KB
fviz_hmfa-2.png 127KB
multivariate-analysis-factoextra.png 125KB
multivariate-analysis-factoextra.png 125KB
fviz_mca-8.png 124KB
fviz_dend-2.png 123KB
fviz_add-1.png 122KB
fviz-2.png 122KB
fviz_mca-4.png 122KB
fviz_mca-3.png 120KB
fviz_ca-2.png 119KB
fviz-1.png 119KB
fviz_famd-5.png 118KB
fviz-6.png 117KB
get_clust_tendency-2.png 117KB
共 277 条
- 1
- 2
- 3
资源评论
活着奔跑
- 粉丝: 35
- 资源: 4685
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功