Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gx.rqpca.screeplot

Display a Scree Plot


Description

Function to display a scree plot arising from a Principal Components Analysis (PCA) from the saved object from gx.mva, gx.mva.closed, gx.robmva or gx.robmva.closed. In addition to the screeplot the cumulative variability explained is also displayed.

Usage

gx.rqpca.screeplot(save, main = "", ...)

Arguments

save

a saved object from the execution of function gx.mva, gx.mva.closed,
gx.robmva or gx.robmva.closed.

main

an alternate plot title to that in the saved object, see Details below.

...

further arguments to be passed to methods concerning the plot. For example, if some colour other than black is required for the plotting characters, specify col = 2 to obtain red (see display.lty for the default colour palette). If it is required to make the plot title smaller, add cex.main = 0.9 to reduce the font size by 10%.

Details

If main is undefined the name of the matrix object from which the PCA was derived is passed to the function via the saved object. Using the matrix name is the recommended procedure in the source functions as it helps to track the progression of the data analysis, acting as a record of the data source. However, at a presentation stage an alternate plot title may be preferred and can be defined in this function, e.g., main = "Plot Title Text". If no plot title is required set main = " ".

Author(s)

Robert G. Garrett

See Also

Examples

## Make test data available
data(sind.mat2open)

## Save PCA results and display scree plot
sind.save <- gx.mva(ilr(sind.mat2open))
gx.rqpca.screeplot(sind.save)
gx.rqpca.screeplot(sind.save,
main = "Howarth & Sinding Larsen Stream Sediments\nilr transform",
pch = 4, col = 2, cex.main = 0.9)

## Clean-up
rm(sind.save)

rgr

Applied Geochemistry EDA

v1.1.15
GPL-2
Authors
Robert G. Garrett
Initial release
2018-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.