---
title: "Data visualization with factoextra"
output: rmarkdown::html_vignette
description: >
  Extract and Visualize the results of multivariate data analyses.
vignette: >
  %\VignetteIndexEntry{Data visualization with factoextra}
  %\VignetteEngine{knitr::rmarkdown}
  %\VignetteEncoding{UTF-8}
---

```{r echo=FALSE, message = FALSE, warning=FALSE}
knitr::opts_chunk$set(collapse = T, comment = "#>")
```

`booklet` is an R package that provides an efficient and user-friendly way to perform multivariate data analyses. `factoextra` was initially designed for `FactoMineR` but you can easily use it with `booklet` for data visualization. This vignette provides a quick overview of how to use `factoextra` with `booklet`.


```{r message = FALSE, warning=FALSE}
library(factoextra)
library(FactoMineR)
library(booklet)
data(decathlon)
```


## Data preparation

```{r}
X <- decathlon[, -c(11:13)]
res_pca <- facto_pca(X, ncp = 5, quanti_sup = 10)
```

## Eigs

```{r}
fviz_eig(res_pca)
```

## Individuals

```{r}
fviz_pca_ind(res_pca)
```

## Variables

```{r}
fviz_pca_var(res_pca)
```
