plot.farm.scree {FarmTest} | R Documentation |
Plot method for farm.scree
objects. Plots the eigenvalue ratio plot and the scree plot.
## S3 method for class 'farm.scree' plot(x, scree.plot = TRUE, ratio.plot = TRUE, col = "red", ...)
x |
A " |
scree.plot |
optional indicating whether to show the scree plot. Default TRUE |
ratio.plot |
optional indicating whether to show the scree plot. Default TRUE. |
col |
Controls the color of the maximim eigenvalue dot. Defaut "red". |
... |
graphical parameters to |
By default, two plots are output with default options. To customize plots, plot one at a time and customize.
Two plots: First plot is the scree plot of the data. Second plot illustrates the eigenvalue ratio test.
farm.scree
and print.farm.scree
set.seed(100) p = 100 n = 20 epsilon = matrix(rnorm( p*n, 0,1), nrow = n) B = matrix(rnorm(p*3,0,1), nrow=p) fx = matrix(rnorm(3*n, 0,1), nrow = n) X = fx%*%t(B)+ epsilon output = farm.scree(X, cv=FALSE) plot(output) plot(output, scree.plot=FALSE, col="blue", main="Customized plot")