decorateBBplot: decorateBBplot Function

Description Usage Arguments Details Value Examples

View source: R/decorateBBplot.R

Description

This function is called by BBplot for drawing GGE biplot with environment winner designations. This function is not intended to be used by the user directly

Usage

1
2
decorateBBplot(Gscores, Escores, Eeffect, axes.names, decorate = TRUE,
  scaledPlot = TRUE, Gnames)

Arguments

Gscores

matrix of genotype scores

Escores

matrix of environment scores

Eeffect

numeric vector environment effects(?)

axes.names

character vector of axis names

decorate

logical, indicates if the environment winenr panels should be colored

scaledPlot

logical, indicates if genotypes scores and escores shoudl be scaled to one another (how does f effect this?)

Gnames

names of genotypes to be printed, default is outer edge

Details

Uses chull() to compute convex hull of biplot points, draws lines to each of them sucessively, and then draws lines from the origin perpendicular to each segment. Colors are added to sectors containing genotypes if decorate = TRUE

Value

list sectors

Examples

1
2
3
data(ontario)
GGEfit <- bilinear(x = ontario, model = "GGE")
BBplot(GGEfit, decorateGGE = TRUE)

nsantantonio/Bilinear documentation built on Aug. 18, 2020, 2:31 p.m.