BIplot | R Documentation |
biplot methods
BIplot(
variates,
loadings,
prop_expl_var,
comp = c(1, 2),
group = NULL,
rownamevar = T,
rownameload = T
)
variates |
is the size of groups |
loadings |
is a vector of classes |
prop_expl_var |
data set |
comp |
component numeric |
group |
is a vector of groups |
rownamevar |
is a logical vector where TRUE is the label of the observations, if is FALSE, is index. |
rownameload |
is a logical vector where TRUE is the label of the vectors of loadings, if is FALSE, is index. |
return an grafics .
library(datasets)
obj<-pca(datos=iris[,-5],grupos=iris[,5],Plot=FALSE,center=TRUE,scale=TRUE)
BIplot(variates=obj$variates,loadings=obj$loadings,
prop_expl_var=obj$prop_expl_var,comp=c(1,2),
group=factor(as.numeric(iris[,5])),rownamevar=FALSE,rownameload=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.