Learn R Programming

nFactors (version 2.4.1.1)

plotParallel: Plot a Parallel Analysis Class Object

Description

Plot a scree plot adding information about a parallel analysis.

Usage

plotParallel(parallel, eig = NA, x = eig, model = "components",
  legend = TRUE, ylab = "Eigenvalues", xlab = "Components",
  main = "Parallel Analysis", ...)

Value

Nothing returned.

Arguments

parallel

numeric: vector of the results of a previous parallel analysis

eig

depreciated parameter: eigenvalues to analyse (not used if x is used, recommended)

x

numeric: a vector of eigenvalues, a matrix of correlations or of covariances or a data.frame of data

model

character: "components" or "factors"

legend

logical: indicator of the presence or not of a legend

ylab

character: label of the y axis

xlab

character: label of the x axis

main

character: title of the plot

...

variable: additionnal parameters to give to the cor or cov functions

Author

Gilles Raiche
Centre sur les Applications des Modeles de Reponses aux Items (CAMRI)
Universite du Quebec a Montreal
raiche.gilles@uqam.ca

Details

If eig is FALSE the plot shows only the parallel analysis without eigenvalues.

References

Raiche, G., Walls, T. A., Magis, D., Riopel, M. and Blais, J.-G. (2013). Non-graphical solutions for Cattell's scree test. Methodology, 9(1), 23-29.

See Also

plotuScree, nScree, plotnScree, parallel

Examples

Run this code

## SIMPLE EXAMPLE OF A PARALLEL ANALYSIS
## OF A CORRELATION MATRIX WITH ITS PLOT
 data(dFactors)
 eig      <- dFactors$Raiche$eigenvalues
 subject  <- dFactors$Raiche$nsubjects
 var      <- length(eig)
 rep      <- 100
 cent     <- 0.95
 results  <- parallel(subject,var,rep,cent)

 results


## PARALLEL ANALYSIS SCREE PLOT
 plotParallel(results, x=eig)
 plotParallel(results)


Run the code above in your browser using DataLab