Learn R Programming

FactoMineR (version 1.34)

wine: Wine

Description

The data used here refer to 21 wines of Val de Loire.

Usage

data(wine)

Arguments

Format

A data frame with 21 rows (the number of wines) and 31 columns: the first column corresponds to the label of origin, the second column corresponds to the soil, and the others correspond to sensory descriptors.

Source

Centre de recherche INRA d'Angers

Examples

Run this code
data(wine)

## Example of PCA
res.pca = PCA(wine,ncp=5, quali.sup = 1:2)

## Not run: 
# ## Example of MCA
# res.mca = MCA(wine,ncp=5, quanti.sup = 3:ncol(wine))
# 
# ## Example of MFA
# res.mfa = MFA(wine,group=c(2,5,3,10,9,2),type=c("n",rep("s",5)),ncp=5,
#     name.group=c("orig","olf","vis","olfag","gust","ens"),
#     num.group.sup=c(1,6),graph=FALSE)
# plotellipses(res.mfa)
# plotellipses(res.mfa,keepvar="Label") ## for 1 variable
# ## End(Not run)

Run the code above in your browser using DataLab