plot.eigen: Plot the eigenvalues

Description Usage Arguments Author(s) See Also Examples

View source: R/plot.eigen.R

Description

Plot the eigenvalues for from singular value decomposition of BLUP interaction effects matrix.

Usage

1
2
3
4
5
6
## S3 method for class 'eigen'
plot(x, export = FALSE, theme = theme_waasb(),
     file.type = "pdf", file.name = NULL, width = 6, height = 6,
     size.shape = 3.5, size.line = 1, size.tex.lab = 12,
     y.lab = "Eigenvalue",  y2.lab = "Accumulated variance",
     x.lab = "Number of multiplicative terms", resolution = 300, ...)

Arguments

x

The WAASB object

export

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

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'

file.type

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

file.name

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

width

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

height

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

size.shape

The size of the shape. Default is 3.5.

size.line

The size of the line. Default is 1.

size.tex.lab

The size of the text in axis text and labels.

y.lab

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

y2.lab

The label of the second y-axis in the plot. Default is "Accumulated variance".

x.lab

The label of the x-axis in the plot. Default is "Number of multiplicative terms".

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, plot.WAASBY

Examples

1
2
3
4
5
6
7
library(METAAB)
BLUP = WAASB(data_ge,
             resp = c(GY, HM),
             gen = GEN,
             env = ENV,
             rep = REP)
plot.eigen(BLUP$GY)

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