biplot.AMMIobj | R Documentation |
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.
## S3 method for class '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 class '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, ...)
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 |
It only returns a graph
Andrea Onofri
WinterWheat <- getAgroData("WinterWheat")
tab <- with(WinterWheat, AMMI(Yield, Genotype, Year, Block, PC = 2))
biplot(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.