Learn R Programming

ICtest (version 0.3-5)

screeplot.ictest: Screeplot for an ictest Object

Description

Plots the criterion values of an ictest object against its index number. Two versions of this screeplot are available.

Usage

# S3 method for ictest
screeplot(x, type = "barplot", main = deparse(substitute(x)), 
  ylab = "criterion", xlab = "component", ...)

Arguments

x

object of class ictest.

type

barplot if a barplot or lines if a line plot is preferred.

main

main title of the plot.

ylab

y-axis label.

xlab

x-axis label.

other arguments for the plotting functions.

See Also

ggscreeplot

Examples

Run this code
# NOT RUN {
n <- 200
X <- cbind(rnorm(n, sd = 2), rnorm(n, sd = 1.5), rnorm(n), rnorm(n), rnorm(n))

TestCov <- PCAasymp(X, k = 2)
screeplot(TestCov)
# }

Run the code above in your browser using DataLab