Multivariate analysis for PCA and HCPC
Arguments
- data
Field book data.
- last_factor
The last factor in your fieldbook.
- summary_by
Variables for group the analysis.
- groups
Groups for color in PCA.
- variables
Variables to be use in the analysis.
Examples
if (FALSE) {
library(inti)
library(gsheet)
url <- paste0("https://docs.google.com/spreadsheets/d/"
, "15r7ZwcZZHbEgltlF6gSFvCTFA-CFzVBWwg3mFlRyKPs/edit#gid=172957346")
# browseURL(url)
fb <- gsheet2tbl(url)
mv <- yupana_mvr(data = fb
, last_factor = "bloque"
, summary_by = c("geno", "treat")
, groups = NULL
)
FactoMineR::plot.PCA(mv$pca, choix = "ind", habillage = mv$param$groups)
}