plot_eigen {metan} | R Documentation |
Plot the eigenvalues
Description
Plot the eigenvalues for from singular value decomposition of BLUP interaction effects matrix.
Usage
plot_eigen(
x,
var = 1,
export = FALSE,
plot_theme = theme_metan(),
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 |
var |
The variable to plot. Defaults to |
export |
Export (or not) the plot. Default is |
plot_theme |
The graphical theme of the plot. Default is
|
file.type |
If |
file.name |
The name of the file for exportation, 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. Default is |
size.line |
The size of the line. Default is |
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
|
y2.lab |
The label of the second y-axis in the plot. Default is
|
x.lab |
The label of the x-axis in the plot. Default is |
resolution |
The resolution of the plot. Parameter valid if
|
... |
Currently not used. |
Value
An object of class gg, ggplot
.
Author(s)
Tiago Olivoto tiagoolivoto@gmail.com
See Also
Examples
library(metan)
BLUP <- waasb(data_ge,
resp = c(GY, HM),
gen = GEN,
env = ENV,
rep = REP)
plot_eigen(BLUP)