gx.rqpca.screeplot: Display a Scree Plot

Description Usage Arguments Details Author(s) See Also Examples

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

1

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

gx.mva, gx.mva.closed, gx.robmva, gx.robmva.closed

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)

Example output

Loading required package: MASS
Loading required package: fastICA
  ** Are the data/parts all in the same measurement units? **
  n = 25 	nc = 25 	p = 5 		nc/p = 5 
  Eigenvalues: 3.686 0.4931 0.397 0.1648 0.05908 
     as %ages: 76.8 10.3 8.3 3.4 1.2 
  Score S^2s : 0.1536 0.02055 0.01654 0.006867 0.002462 
Warning messages:
1: In par(old.par) : graphical parameter "cin" cannot be set
2: In par(old.par) : graphical parameter "cra" cannot be set
3: In par(old.par) : graphical parameter "csi" cannot be set
4: In par(old.par) : graphical parameter "cxy" cannot be set
5: In par(old.par) : graphical parameter "din" cannot be set
6: In par(old.par) : graphical parameter "page" cannot be set
Warning messages:
1: In par(old.par) : graphical parameter "cin" cannot be set
2: In par(old.par) : graphical parameter "cra" cannot be set
3: In par(old.par) : graphical parameter "csi" cannot be set
4: In par(old.par) : graphical parameter "cxy" cannot be set
5: In par(old.par) : graphical parameter "din" cannot be set
6: In par(old.par) : graphical parameter "page" cannot be set

rgr documentation built on May 2, 2019, 6:09 a.m.

Related to gx.rqpca.screeplot in rgr...