AMMIplot: AMMIplot function

Description Usage Arguments Details Examples

View source: R/AMMIplot.R

Description

This function will make linear and winner plots from a bilinear() object like Figure 2 and Figure 3 of Gauch & Zobel (1997).

Usage

1
2
AMMIplot(bilinearObject, plots = "linear", color = c("darkgreen",
  "darkblue"), PC = 1, f = 0.5, ...)

Arguments

bilinearObject

object from output of a call to biliner()

plots

character vector of maximum length 2 containing the names of the plots to be produced. Possible arguments are "linear" and "winner". If both are specified in a single call, both plots will be plotted to the same device

color

character vector of length 2 containing colors for the plots. The first specifies the genotype color and the second the environment color. If only one color is specified, only genotypes will be colored

PC

integer. Principal component to plot. The default is 1

f

numeric. Scale parameter in (0, 1) for exponent on eigenvalues for weighting the genotype scores. Environment scores are weighted 1 - f. Default is 0.5

...

Additional arguments.

Details

Many arguments can be passed on to plot() through (...)

Examples

1
2
3
4
5
6
data(soyMeanMat)
AMMIfit <- bilinear(x = soyMeanMat)
AMMIplot(AMMIfit)
AMMIplot(AMMIfit, "winner")
AMMIplot(AMMIfit, "winner", color = "hotpink")
AMMIplot(AMMIfit, c("linear", "winner"), color = c("hotpink", "darkorchid"))

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