metan (version 1.18.0)

plot.wsmp: Plot heat maps with genotype ranking

Description

Plot heat maps with genotype ranking in two ways.

Usage

# S3 method for wsmp
plot(x, var = 1, type = 1, y.lab = NULL, x.lab = NULL, size.lab = 12, ...)

Value

An object of class gg.

Arguments

x

An object returned by the function wsmp.

var

The variable to plot. Defaults to var = 1 the first variable of x.

type

1 = Heat map Ranks: this graphic shows the genotype ranking considering the WAASB index estimated with different numbers of Principal Components; 2 = Heat map WAASY-GY ratio: this graphic shows the genotype ranking considering the different combinations in the WAASB/GY ratio.

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 labels.

...

Currently not used.

Author

Tiago Olivoto tiagoolivoto@gmail.com

Details

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.

Examples

Run this code
# \donttest{
library(metan)
model <- waasb(data_ge2,
               env = ENV,
               gen = GEN,
               rep = REP,
               resp = PH) %>%
         wsmp()

p1 <- plot(model)
p2 <- plot(model, type = 2)
arrange_ggplot(p1, p2, ncol = 1)
# }

Run the code above in your browser using DataLab