Plot the predicted BLUP of the genotypes.

plot_blup(
x,
var = 1,
prob = 0.05,
export = FALSE,
file.type = "pdf",
file.name = NULL,
plot_theme = theme_metan(),
width = 6,
height = 6,
size.err.bar = 0.5,
size.shape = 3.5,
size.tex.lab = 12,
height.err.bar = 0.3,
x.lim = NULL,
x.breaks = waiver(),
col.shape = c("blue", "red"),
y.lab = "Genotypes",
x.lab = "Predicted Grain Yield",
resolution = 300,
...
)

Arguments

x The waasb object The variable to plot. Defaults to var = 1 the first variable of x. The probability error for constructing confidence interval. Export (or not) the plot. Default is TRUE. If export = TRUE, define the type of file to be exported. Default is pdf, Graphic can also be exported in *.tiff format by declaring file.type = "tiff". The name of the file for exportation, default is NULL, i.e. the files are automatically named. The graphical theme of the plot. Default is plot_theme = theme_metan(). For more details, see theme. The width "inch" of the plot. Default is 6. The height "inch" of the plot. Default is 6. The size of the error bar for the plot. Default is 0.5. The size of the shape (both for genotypes and environments). Default is 3.5. The size of the text in axis text and labels. The height for error bar. Default is 0.3. The range of x-axis. Default is NULL (maximum and minimum values of the data set). New arguments can be inserted as x.lim = c(x.min, x.max). The breaks to be plotted in the x-axis. Default is authomatic breaks. New arguments can be inserted as x.breaks = c(breaks) A vector of length 2 that contains the color of shapes for genotypes above and below of the mean, respectively. Default is c("blue", "red"). The label of the y-axis in the plot. Default is "Genotypes". The label of the x-axis in the plot. Default is "Predicted Grain Yield". The resolution of the plot. Parameter valid if file.type = "tiff" is used. Default is 300 (300 dpi) Currently not used.

Value

An object of class gg, ggplot.

plot_scores, plot_waasby

Examples

# \donttest{
library(metan)
BLUP <- waasb(data_ge,
resp = c(GY, HM),
gen = GEN,
env = ENV,
rep = REP)#> Method: REML/BLUP#> Random effects: GEN, GEN:ENV#> Fixed effects: ENV, REP(ENV)#> Denominador DF: Satterthwaite's method#> ---------------------------------------------------------------------------
#> 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 interactionplot_blup(BLUP)
# }