plot_waasby | R Documentation |
Plot heat maps with genotype ranking in two ways.
plot_waasby( x, var = 1, export = F, file.type = "pdf", file.name = NULL, plot_theme = theme_metan(), width = 6, height = 6, size.shape = 3.5, size.tex.lab = 12, col.shape = c("blue", "red"), x.lab = "WAASBY", y.lab = "Genotypes", x.breaks = waiver(), resolution = 300, ... )
x |
The |
var |
The variable to plot. Defaults to |
export |
Export (or not) the plot. Default is |
file.type |
The type of file to be exported. Default is |
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 |
size.shape |
The size of the shape in the plot. Default is |
size.tex.lab |
The size of the text in axis text and labels. |
col.shape |
A vector of length 2 that contains the color of shapes for
genotypes above and below of the mean, respectively. Default is
|
x.lab |
The label of the x axis in the plot. Default is |
y.lab |
The label of the y axis in the plot. Default is
|
x.breaks |
The breaks to be plotted in the x-axis. Default is
|
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()
library(metan) library(ggplot2) waasby <- waasb(data_ge, resp = GY, gen = GEN, env = ENV, rep = REP) waasby2 <- waas(data_ge, resp = GY, gen = GEN, env = ENV, rep = REP) plot_waasby(waasby) plot_waasby(waasby2) + theme_gray() + theme(legend.position = "bottom", legend.background = element_blank(), legend.title = element_blank(), legend.direction = "horizontal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.