Plot heat maps with genotype ranking in two ways.
# S3 method for wsmp plot(x, var = 1, type = 1, y.lab = NULL, x.lab = NULL, size.lab = 12, ...)
x | The object returned by the function |
---|---|
var | The variable to plot. Defaults to |
type |
|
y.lab | The label of y axis. Default is 'Genotypes'. |
x.lab | The label of x axis. Default is 'Number of axes'. |
size.lab | The size of the |
... | Currently not used. |
An object of class gg
.
The first type of heatmap shows the genotype ranking depending on the number of principal component axis used for estimating the WAASB index. The second type of heatmap shows the genotype ranking depending on the WAASB/GY ratio. The ranks obtained with a ratio of 100/0 considers exclusively the stability for the genotype ranking. On the other hand, a ratio of 0/100 considers exclusively the productivity for the genotype ranking. Four clusters of genotypes are shown by label colors (red) unproductive and unstable genotypes; (blue) productive, but unstable genotypes; (black) stable, but unproductive genotypes; and (green), productive and stable genotypes.
Tiago Olivoto tiagoolivoto@gmail.com
# \donttest{ library(metan) model <- waasb(data_ge2, env = ENV, gen = GEN, rep = REP, resp = PH) %>% wsmp()#>#>#>#>#> --------------------------------------------------------------------------- #> P-values for Likelihood Ratio Test of the analyzed traits #> --------------------------------------------------------------------------- #> model PH #> COMPLETE NA #> GEN 9.39e-01 #> GEN:ENV 1.09e-13 #> --------------------------------------------------------------------------- #> All variables with significant (p < 0.05) genotype-vs-environment interaction#> Warning: Vectorized input to `element_text()` is not officially supported. #> Results may be unexpected or may change in future versions of ggplot2.#> Warning: Vectorized input to `element_text()` is not officially supported. #> Results may be unexpected or may change in future versions of ggplot2.# }