Last data update: 2014.03.03

R: Generate a scree plot
screeplotR Documentation

Generate a scree plot

Description

Screeplot method for CCTpack data, or a cctfit object of class 'cct'; equivalent to function cctscree().

Usage

screeplot(x, ...)

Arguments

x

a 2-dimensional matrix or dataframe, missing values should be input as NA, or a cctfit object of class 'cct'.

...

Additional arguments: polych=T (for ordinal data only), to use the polychoric correlations rather than Pearson correlations.

Details

The scree plot is generated from the respondent by respondent correlation (Pearson) matrix.

Examples

data(hotcold)
screeplot(hotcold)
## With this example data, a scree plot with 2 substantial factors 
##               (suggesting two cultures) is produced. 

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(CCTpack)
Error in library(CCTpack) : there is no package called 'CCTpack'
Execution halted