metan (version 1.2.1)

plot.mtsi: Plot the multi-trait stability index

Description

Makes a radar plot showing the multitrait stability index proposed by Olivoto et al. (2019)

Usage

# S3 method for mtsi
plot(
  x,
  SI = 15,
  radar = TRUE,
  arrange.label = FALSE,
  size.point = 2.5,
  col.sel = "red",
  col.nonsel = "black",
  size.text = 10,
  ...
)

Arguments

x

An object of class mtsi

SI

An integer [0-100]. The selection intensity in percentage of the total number of genotypes.

radar

Logical argument. If true (default) a radar plot is generated after using coord_polar().

arrange.label

Logical argument. If TRUE, the labels are arranged to avoid text overlapping. This becomes useful when the number of genotypes is large, say, more than 30.

size.point

The size of the point in graphic. Defaults to 2.5.

col.sel

The colour for selected genotypes.

col.nonsel

The colour for nonselected genotypes.

size.text

The size for the text in the plot. Defaults to 10.

...

Other arguments to be passed from ggplot2::theme().

Value

An object of class gg, ggplot.

References

Olivoto, T., A.D.C. L\'ucio, J.A.G. da silva, B.G. Sari, and M.I. Diel. 2019. Mean performance and stability in multi-environment trials II: Selection based on multiple traits. Agron. J. (in press).

Examples

Run this code
# NOT RUN {
library(metan)
mtsi_model <- waasb(data_ge, ENV, GEN, REP, resp = c(GY, HM))
mtsi_index <- mtsi(mtsi_model)
plot(mtsi_index)
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab