Learn R Programming

statforbiology (version 0.9.9)

biplot.AMMIobj: Biplots for AMMI and GGE analyses of multi-environment genotype experiments

Description

This method is reserved for the classes 'AMMIobject' and 'GGEobject' as obtained from the 'AMMI()' and 'GGE()' functions in the 'aomisc' package. It draws swift biplots of two types: type 1 plots PC1 against the average yield of genotypes across environments, while type 2 plots PC2 against PC1. The former type of biplot is reserved for 'AMMI' objects, while the second one is for AMMI and GGE objects.

Usage

# S3 method for AMMIobject
biplot(x, biplot = 1, xlim=NULL, ylim=NULL, elabels=NULL,
               glabels=NULL, quad=FALSE, cexG=0.9,
               cexE=0.9,
               xlab=NULL, ylab=NULL, font=1, ...)
# S3 method for GGEobject
biplot(x, biplot = 1, xlim=NULL, ylim=NULL, elabels=NULL,
               glabels=NULL, quad=FALSE, cexG=0.9,
               cexE=0.9,
               xlab=NULL, ylab=NULL, font=1, ...)

Value

It only returns a graph

Arguments

x

a 'AMMIobject' or 'GGEobject' objects

biplot

Numeric: either 1 or 2, to request on of the two available types of biplots (see description).

xlim

graphical parameter as in the 'plot' method

ylim

graphical parameter as in the 'plot' method

elabels

labels for the environments

glabels

labels for the genotypes

quad

logical. If TRUE, plots the axes

cexG

graphical parameter: the 'cex' for the genotype labels

cexE

graphical parameter: the 'cex' for the environment labels

xlab

graphical parameter as in the 'plot' method

ylab

graphical parameter as in the 'plot' method

font

graphical parameter as in the 'plot' method. Relating to the genotype labels

...

Other additional arguments

Author

Andrea Onofri

Examples

Run this code
WinterWheat <- getAgroData("WinterWheat")
tab <- with(WinterWheat, AMMI(Yield, Genotype, Year, Block, PC = 2))
biplot(tab)

Run the code above in your browser using DataLab