Multivariate analysis for PCA and HCPC

fieldbook_mvr(data, fb_smr, summary_by, groups)

Arguments

data

Field book data.

fb_smr

Summary of the variables in the fieldbook.

summary_by

Variables for group the analysis.

groups

Groups for color in PCA.

Value

result and plots

Details

Compute and plot information for multivariate analysis (PCA, HCPC and correlation).

Examples

library(inti) library(googlesheets4) library(FactoMineR) if (gs4_has_token()) { url <- paste0("https://docs.google.com/spreadsheets/d/" , "15r7ZwcZZHbEgltlF6gSFvCTFA-CFzVBWwg3mFlRyKPs") # browseURL(url) gs <- as_sheets_id(url) (data <- gs %>% range_read("fb")) (fb_smr <- gs %>% range_read("fbsm")) mvr <- fieldbook_mvr(data, fb_smr , summary_by = c("genotype", "treat"), groups = "treat") FactoMineR::plot.PCA(mvr$pca , choix = "ind" , habillage = mvr$param$groups_n , invisible = "quali" ) FactoMineR::plot.HCPC(mvr$hcpc , choice = "map" , draw.tree = F ) }