| plot_blup | R Documentation | 
Plot the predicted BLUP of the genotypes.
plot_blup(
  x,
  var = 1,
  which = "gen",
  ncol = NULL,
  nrow = NULL,
  prob = 0.05,
  export = FALSE,
  file.type = "pdf",
  file.name = NULL,
  plot_theme = theme_metan(),
  width = 6,
  height = 6,
  err.bar = TRUE,
  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 = NULL,
  n.dodge = 1,
  check.overlap = FALSE,
  panel.spacing = 0.15,
  resolution = 300,
  ...
)
x | 
 The   | 
var | 
 The variable to plot. Defaults to   | 
which | 
 Which plot to shown. If   | 
ncol, nrow | 
 The number of columns and rows, respectively, to be shown in
the plot when   | 
prob | 
 The probability error for constructing confidence interval.  | 
export | 
 Export (or not) the plot. Default is   | 
file.type | 
 If   | 
file.name | 
 The name of the file for exportation, default is
  | 
plot_theme | 
 The graphical theme of the plot. Default is
  | 
width | 
 The width "inch" of the plot. Default is   | 
height | 
 The height "inch" of the plot. Default is   | 
err.bar | 
 Logical value to indicate if an error bar is shown. Defaults
to   | 
size.err.bar | 
 The size of the error bar for the plot. Default is
  | 
size.shape | 
 The size of the shape (both for genotypes and
environments). Default is   | 
size.tex.lab | 
 The size of the text in axis text and labels.  | 
height.err.bar | 
 The height for error bar. Default is   | 
x.lim | 
 The range of x-axis. Default is   | 
x.breaks | 
 The breaks to be plotted in the x-axis. Default is
  | 
col.shape | 
 A vector of length 2 that contains the color of shapes for
genotypes above and below of the mean, respectively. Default is
  | 
y.lab | 
 The label of the y-axis in the plot. Default is
  | 
x.lab | 
 The label of the x-axis in the plot. Default is   | 
n.dodge | 
 The number of rows that should be used to render the Y 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.  | 
panel.spacing | 
 Defines the spacing between panels when   | 
resolution | 
 The resolution of the plot. Parameter valid if
  | 
... | 
 Currently not used.  | 
An object of class gg, ggplot.
Tiago Olivoto tiagoolivoto@gmail.com
plot_scores(), plot_waasby()
library(metan)
BLUP <- waasb(data_ge2,
              resp = PH,
              gen = GEN,
              env = ENV,
              rep = REP)
plot_blup(BLUP)
plot_blup(BLUP, which = "ge")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.