plot.WAASBY: Plot WAASBY values for genotype ranking

Description Usage Arguments Author(s) See Also Examples

View source: R/plot.WAASBY.R

Description

Plot heat maps with genotype ranking in two ways.

Usage

1
2
3
4
5
## S3 method for class 'WAASBY'
plot(x, export = F , file.type = "pdf", file.name = NULL,
    theme = theme_waasb(), 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, ...)

Arguments

x

The WAASBY object

export

Export (or not) the plot. Default is T.

file.type

The type of file to be exported. Default is pdf, Graphic can also be exported in *.tiff format by declaring file.type = "tiff".

file.name

The name of the file for exportation, default is NULL, i.e. the files are automatically named.

theme

The graphical theme of the plot. Default is 'theme = theme_waasb()'. Please, see '?WAASB::theme_waasb'. An own theme can be applied using the arguments: 'theme = theme_waasb() + theme(some stuff here)'. For more details, please, see ' ?ggplot2::theme'

width

The width "inch" of the plot. Default is 8.

height

The height "inch" of the plot. Default is 7.

size.shape

The size of the shape in the plot. Default is 3.5.

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 c("blue", "red").

x.lab

The label of the x axis in the plot. Default is "WAASBY".

y.lab

The label of the y axis in the plot. Default is "Genotypes".

x.breaks

The breaks to be plotted in the x-axis. Default is authomatic breaks. New arguments can be inserted as x.breaks = c(breaks)

resolution

The resolution of the plot. Parameter valid if file.type = "tiff" is used. Default is 300 (300 dpi)

...

Other arguments of the function

Author(s)

Tiago Olivoto [email protected]

See Also

plot.scores

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
library(METAAB)
library(ggplot2)
waasby = WAASB(data_ge,
               resp = GY,
               gen = GEN,
               env = ENV,
               rep = REP)
waasby2 = WAAS.AMMI(data_ge,
                    resp = GY,
                    gen = GEN,
                    env = ENV,
                    rep = REP)
plot.WAASBY(waasby$GY)
plot.WAASBY(waasby2$GY) +
            theme_gray() +
            theme(legend.position = "bottom",
                  legend.background = element_blank(),
                  legend.title = element_blank(),
                  legend.direction = "horizontal")

TiagoOlivoto/WAASB documentation built on April 1, 2019, 10:25 a.m.