Learn R Programming

agricolae (version 1.0-2)

AMMI.contour: AMMI contour

Description

It makes a polygon or a circumference around the center part of the Biplot with a proportional radio at the longest distance of the genotype.

Usage

AMMI.contour(model, distance, shape, ...)

Arguments

model
Object
distance
Radio de la circunferencia >0 and
shape
Numerico, relacionado con la forma del contorno del poligono.
...
Parametros correspondiente a la fiuncion lines de R

Value

  • modeloutput AMMI
  • distanceNumeric >0 and <=1< description="">
  • shapeNumeric

Details

Es necesario primero ejecutar la funcion AMMI. Solo es valido para la funcion BIPLOT no para TRIPLOT

See Also

AMMI

Examples

Run this code
library(agricolae)
# see AMMI.
data(sinRepAmmi)
attach(sinRepAmmi)
REP <- 3
MSerror <- 93.24224
# Example 1
#startgraph
model<-AMMI(ENV, GEN, REP, YLD, MSerror,xlim=c(-8,6),ylim=c(-6,6))
AMMI.contour(model,distance=0.7,shape=8,col="red",lwd=2,lty=5)
#endgraph
# Example 2
#startgraph
for (i in seq(0,0.7,length=15)) {
AMMI.contour(model,distance=i,shape=100,col="green",lwd=2)
}

Run the code above in your browser using DataLab