Plot Method for princmp
# S3 method for princmp
plot(
x,
which = c("scree", "loadings"),
k = x$k,
offset = 0.8,
col = 1,
adj = 0,
ylim = NULL,
add = FALSE,
abbrev = 25,
nrow = NULL,
...
)
`ggplot2` object if `which='loadings'`
results of `princmp`
'`scree`' or '`loadings'`
number of components to show, default is `k` specified to `princmp`
controls positioning of text labels for cumulative fraction of variance explained
color of plotted text in scree plot
angle for plotting text in scree plot
y-axis scree plotting limits, a 2-vector
set to `TRUE` to add a line to an existing scree plot without drawing axes
an integer specifying the variable name length above which names are passed through [abbreviate(..., minlength=abbrev)]
number of rows to use in plotting loadings. Defaults to the `ggplot2` `facet_wrap` default.
unused
Frank Harrell
Uses base graphics to by default plot the scree plot from a [princmp()] result, showing cumultive proportion of variance explained. Alternatively the standardized PC loadings are shown in a `ggplot2` bar chart.