Description Usage Arguments Value Author(s) Examples
This function produces the plot of the individual factorial map and the biplot from a PCA object obtained after perfoming a Principal Components Analysis with FactoMineR package
1 2 | plotConvexHullPCA(pc, axes, zfactor, convex = T, varnames, indnames,
biplot = T, varlab, indlab, alpha = 0.4)
|
pc |
A FactomineR object obtained after using PCA function |
axes |
It's a vector of length 2 containing the rank of the components that we want to plot |
zfactor |
It's a vector from the original data, it' the sumplementary factor variable used in the PCA |
convex |
It's a boolean function indicates where or not we plot the Hull Convex |
varnames |
It's a vector containing the names of the active variables |
indnames |
It's a vector containing the names of the individuals, i.e; the rownames |
biplot |
It's a boolean vector indicates whether or not we make a biplot or a simple individual plot |
varlab |
It's vector with values c("text","point","arrow") |
indlab |
It's vector with values c("text","point" |
alpha |
A numeric parameter with values from 0 to 1 and it gives the transparency of the plot |
Individual factorial map and Biplot from a PCA
Dhafer Malouche
1 2 3 4 | data(decathlon)
require(FactoMineR)
pc<-PCA(decathlon,scale.unit = T,quanti.sup = 11:12,quali.sup = 13,graph = F)
plotConvexHullPCA(pc = pc,axes = c(1,2),zfactor = decathlon$Competition,convex = T,varnames = colnames(decathlon)[1:10],indnames = rownames(decathlon),varlab = c("text","arrow"),indlab = c("text"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.