gtb {metan} | R Documentation |
Genotype by trait biplot
Description
Produces a genotype-by-trait biplot model. From a genotype by environment by trait three-way table, genotype-by-trait tables in any single environment, across all environments, or across a subset of the environments can be generated and visually studied using biplots. The model for biplot analysis of genotype by trait data is the singular value decomposition of trait-standardized two-way table.
Usage
gtb(.data, gen, resp, centering = "trait", scaling = "sd", svp = "trait")
Arguments
.data |
The dataset containing the columns related to Genotypes and the response variable(s). |
gen |
The name of the column that contains the levels of the genotypes. |
resp |
The response variables, i.e., |
centering |
The centering method. Must be one of the |
scaling |
The scaling method. Must be one of the |
svp |
The method for singular value partitioning. Must be one of the
|
Value
The function returns a list of class gge
that is compatible with the function plot()
used in gge()
.
-
coordgen The coordinates for genotypes for all components.
-
coordenv The coordinates for traits for all components.
-
eigenvalues The vector of eigenvalues.
-
totalvar The overall variance.
-
labelgen The name of the genotypes.
-
labelenv The names of the traits.
-
labelaxes The axes labels.
-
gt_mat The data used to produce the model (scaled and centered).
-
centering The centering method.
-
scaling The scaling method.
-
svp The singular value partitioning method.
-
d The factor used to generate in which the ranges of genotypes and traits are comparable when singular value partitioning is set to 'genotype' or 'trait'.
-
grand_mean The grand mean of the trial.
-
mean_gen A vector with the means of the genotypes.
-
mean_env A vector with the means of the traits.
-
scale_var The scaling vector when the scaling method is
'sd'
.
Author(s)
Tiago Olivoto tiagoolivoto@gmail.com
References
Yan, W., and M.S. Kang. 2003. GGE biplot analysis: a graphical tool for breeders, geneticists, and agronomists. CRC Press.
Examples
library(metan)
# GT biplot for all numeric variables
mod <- gtb(data_ge2, GEN, resp = contains("E"))
plot(mod)