Skip to contents

Figures for stability_analysis results:

  • "eberhart": genotype mean against the regression coefficient \(b_i\), with reference lines at the grand mean and \(b_i = 1\).

  • "ammi1": AMMI1 biplot of mean against IPCA1 scores for genotypes and environments.

  • "ammi2": AMMI2 biplot of IPCA1 against IPCA2, with environments as vectors.

Usage

plot_stability(x, type = c("eberhart", "ammi1", "ammi2"), title = NULL)

Arguments

x

An object of class aridagri_stability.

type

"eberhart" (default), "ammi1" or "ammi2".

title

Plot title.

Value

A ggplot2 object.

Examples

if (requireNamespace("ggplot2", quietly = TRUE)) {
  data(pearlmillet_met)
  st <- stability_analysis(pearlmillet_met, "genotype", "environment",
                           "rep", "grain_yield", verbose = FALSE)
  plot_stability(st, "eberhart")
  plot_stability(st, "ammi2")
}