ggscreeplot.ictest {ICtest} | R Documentation |
Screeplot for an ictest Object Using ggplot2
Description
Plots the criterion values of an ictest
object against its index number using ggplot2. Two versions of this screeplot are available.
Usage
## S3 method for class 'ictest'
ggscreeplot(x, type = "barplot", main = deparse(substitute(x)),
ylab = "criterion", xlab = "component", ...)
Arguments
x |
object of class |
type |
|
main |
main title of the plot. |
ylab |
y-axis label. |
xlab |
x-axis label. |
... |
arguments passed to and from methods. |
Author(s)
Klaus Nordhausen, Joni Virta
See Also
Examples
n <- 200
X <- cbind(rnorm(n, sd = 2), rnorm(n, sd = 1.5), rnorm(n), rnorm(n), rnorm(n))
TestCov <- PCAasymp(X, k = 2)
ggscreeplot(TestCov)
[Package ICtest version 0.3-5 Index]