https://github.com/cran/nFactors
Tip revision: 923d0cc1f43c36debbea1f1fb06e4de448065380 authored by Gilles Raiche on 31 August 2019, 09:11:55 UTC
version 2.3.3.1
version 2.3.3.1
Tip revision: 923d0cc
plotuScree.R
"plotuScree" <-
function(Eigenvalue, x=Eigenvalue, model = "components",
ylab = "Eigenvalues",
xlab = "Components",
main = "Scree Plot" ,
...) {
Eigenvalue <- eigenComputes(x, ...)
if (!inherits(Eigenvalue, "numeric")) stop("use only with \"numeric\" objects")
if (model == "factors") xlab <- "Factors"
par(mfrow = c(1,1))
nk <- length(Eigenvalue)
Component <- 1:nk
plot.default(as.numeric(Component),
as.numeric(Eigenvalue),
type = 'b',col = "black", pch = 1,
ylab = ylab,
xlab = xlab,
main = main
)
}