yupana_mvr: Multivariate Analysis

View source: R/yupana_mvr.R

yupana_mvrR Documentation

Multivariate Analysis

Description

Multivariate analysis for PCA and HCPC

Usage

yupana_mvr(
  data,
  last_factor = NULL,
  summary_by = NULL,
  groups = NULL,
  variables = NULL
)

Arguments

data

Field book data.

last_factor

The last factor in your fieldbook [string: NULL].

summary_by

Variables for group the analysis.

groups

Groups for color in PCA.

variables

Variables to be use in the analysis [string: NULL].

Details

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

Value

result and plots

Examples


## Not run: 

library(inti)

fb <- inti::potato 

mv <- yupana_mvr(data = fb
                 , last_factor = "geno"
                 , summary_by = c("geno", "treat")
                 , groups = "treat"
                 , variables = c("all")
                 #, variables = c("wue", "twue")
                 )
                 
mv$plot[1] 

mv$data



## End(Not run)


inti documentation built on Sept. 11, 2024, 8:04 p.m.