Makes a radar plot showing the multitrait stability index proposed by Olivoto et al. (2019)
# S3 method for mtsi plot( x, SI = 15, type = "index", position = "fill", genotypes = "selected", 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", ... )
x | An object of class |
---|---|
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 |
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 |
... | Other arguments to be passed from ggplot2::theme(). |
An object of class gg, ggplot
.
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).
Tiago Olivoto tiagoolivoto@gmail.com
#>#>#>#>#> --------------------------------------------------------------------------- #> P-values for Likelihood Ratio Test of the analyzed traits #> --------------------------------------------------------------------------- #> model GY HM #> COMPLETE NA NA #> GEN 1.11e-05 5.07e-03 #> GEN:ENV 2.15e-11 2.27e-15 #> --------------------------------------------------------------------------- #> All variables with significant (p < 0.05) genotype-vs-environment interaction#> #> ------------------------------------------------------------------------------- #> Principal Component Analysis #> ------------------------------------------------------------------------------- #> # A tibble: 2 x 4 #> PC Eigenvalues `Variance (%)` `Cum. variance (%)` #> <chr> <dbl> <dbl> <dbl> #> 1 PC1 1.37 68.5 68.5 #> 2 PC2 0.631 31.5 100 #> ------------------------------------------------------------------------------- #> Factor Analysis - factorial loadings after rotation- #> ------------------------------------------------------------------------------- #> # A tibble: 2 x 4 #> VAR FA1 Communality Uniquenesses #> <chr> <dbl> <dbl> <dbl> #> 1 GY 0.827 0.685 0.315 #> 2 HM 0.827 0.685 0.315 #> ------------------------------------------------------------------------------- #> Comunalit Mean: 0.6846623 #> ------------------------------------------------------------------------------- #> Selection differential for the waasby index #> ------------------------------------------------------------------------------- #> # A tibble: 2 x 6 #> VAR Factor Xo Xs SD SDperc #> <chr> <chr> <dbl> <dbl> <dbl> <dbl> #> 1 GY FA 1 48.3 86.4 38.0 78.7 #> 2 HM FA 1 58.3 79.2 21.0 36.0 #> ------------------------------------------------------------------------------ #> Mean of selection differential #> ------------------------------------------------------------------------------- #> Xo Xs SD SDperc #> 53.30528 82.80829 29.50301 57.33645 #> ------------------------------------------------------------------------------- #> Selection differential for the mean of the variables #> ------------------------------------------------------------------------------- #> # A tibble: 2 x 8 #> VAR Factor xo Xs SD SDperc sense goal #> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <chr> <dbl> #> 1 GY FA 1 2.67 2.98 0.305 11.4 increase 100 #> 2 HM FA 1 48.1 48.4 0.265 0.551 increase 100 #> ------------------------------------------------------------------------------ #> Selected genotypes #> ------------------------------------------------------------------------------- #> G8 G3 #> -------------------------------------------------------------------------------plot(mtsi_index)# }