scree_plot: Scree plot

Description Usage Arguments Value Examples

Description

Easy, one function approach to creating scree plots

Usage

1
scree_plot(corr, observations = nrow(corr), variables = ncol(corr))

Arguments

corr

The correlation matrix to be used

observations

number of observations in dataset

variables

number of variables in dataset

Value

A plottable scree plot object

Examples

1
2
3
4
5
set.seed(100)
data <- matrix(rnorm(100), ncol = 10) # loading our 'data'
data_cor <- cor(data)
scree <- scree_plot(data_cor, 10, 10)
plot(scree)

mattkcole/FAtools documentation built on May 21, 2019, 1:24 p.m.