plot.mtmps {metan} | R Documentation |
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 class 'mtmps'
plot(
x,
SI = 15,
type = "index",
position = "fill",
genotypes = "selected",
title = TRUE,
radar = TRUE,
arrange.label = FALSE,
x.lab = NULL,
y.lab = NULL,
size.point = 2.5,
size.line = 0.7,
size.text = 10,
width.bar = 0.75,
n.dodge = 1,
check.overlap = FALSE,
invert = FALSE,
col.sel = "red",
col.nonsel = "black",
legend.position = "bottom",
...
)
Arguments
x |
An object computed with |
SI |
An integer (0-100). The selection intensity in percentage of the total number of genotypes. |
type |
The type of the plot. Defaults to |
position |
The position adjustment when |
genotypes |
When |
title |
Logical values (Defaults to |
radar |
Logical argument. If true (default) a radar plot is generated
after using |
arrange.label |
Logical argument. If |
x.lab , y.lab |
The labels for the axes x and y, respectively. x label is set to null when a radar plot is produced. |
size.point |
The size of the point in graphic. Defaults to 2.5. |
size.line |
The size of the line in graphic. Defaults to 0.7. |
size.text |
The size for the text in the plot. Defaults to 10. |
width.bar |
The width of the bars if |
n.dodge |
The number of rows that should be used to render the x labels. This is useful for displaying labels that would otherwise overlap. |
check.overlap |
Silently remove overlapping labels, (recursively) prioritizing the first, last, and middle labels. |
invert |
Logical argument. If |
col.sel |
The colour for selected genotypes. Defaults to |
col.nonsel |
The colour for nonselected genotypes. Defaults to |
legend.position |
The position of the legend. |
... |
Other arguments to be passed from |
Value
An object of class gg, ggplot
.
Author(s)
Tiago Olivoto tiagoolivoto@gmail.com
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
library(metan)
model <-
mps(data_ge,
env = ENV,
gen = GEN,
rep = REP,
resp = everything())
selection <- mtmps(model)
plot(selection)