Learn R Programming

corregp (version 2.0.2)

screeplot.corregp: Scree Plotting

Description

Method to produce a scree plot, i.e. a bar chart of the eigenvalues.

Usage

# S3 method for corregp
screeplot(x, type = "value", add_ci = FALSE, cl = 0.95,
  nq = TRUE, ...)

Arguments

x

The output of a call to corregp (i.e. an object of class "corregp").

type

A character specification of which type of values to plot: either "value" for the actual eigenvalues, "%" for percentages or "cum_%" for cumulative percentages. Defaults to "value".

add_ci

Logical specifying whether to include the confidence intervals. Defaults to FALSE.

cl

The confidence level for the confidence intervals. Defaults to 0.95.

nq

Logical specifying whether to use a normal quantile (i.e. apply qnorm) in the computation of the confidence intervals. Defaults to TRUE. If FALSE, then the confidence intervals are computed directly with the quantile function.

...

Further arguments passed to or from other methods.

Value

A plot window containing the scree plot.

Details

screeplot (of a corregp output) makes use of barplot2 from the package gplots.

See Also

corregp, summary.corregp, anova.corregp.

Examples

Run this code
# NOT RUN {
data(HairEye)
haireye.crg <- corregp(Eye ~ Hair * Sex, data = HairEye, b = 3000)
screeplot(haireye.crg, add_ci = TRUE)
# }

Run the code above in your browser using DataLab