Last data update: 2014.03.03

R: Plotting Method for a Principal Component Object of Type...
screeplot.mvPCAR Documentation

Plotting Method for a Principal Component Object of Type mvPCA

Description

Creates a screeplot for an object of class mvPCA. Works analogously to a normal screeplot for a classical principal component analysis. Here however the y-axis gives the proportion of the variation explained by the components.

Usage

## S3 method for class 'mvPCA'
plot(x, main = deparse(substitute(x)), ...)
## S3 method for class 'mvPCA'
screeplot(x, npcs = min(10, length(x$EigenV)), 
          type = c("barplot", "lines"), 
          main = deparse(substitute(x)), ...)

Arguments

x

an object to type mvPCA.

npcs

the number of components to be plotted.

type

the type of plot.

main

title of the plot.

...

other graphical parameters passed to or from other methods.

Value

A screeplot.

Author(s)

Klaus Nordhausen

See Also

mvPCA

Examples

data(IRIS)
IRIS <- iris[,1:4]
iris.pca <- mvPCA(IRIS, "sign", "i")
plot(iris.pca, type="lines")

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MNM)
Loading required package: ICSNP
Loading required package: mvtnorm
Loading required package: ICS
Loading required package: SpatialNP
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MNM/screeplot.mvPCA.Rd_%03d_medium.png", width=480, height=480)
> ### Name: screeplot.mvPCA
> ### Title: Plotting Method for a Principal Component Object of Type mvPCA
> ### Aliases: plot.mvPCA screeplot.mvPCA
> ### Keywords: hplot methods
> 
> ### ** Examples
> 
> data(IRIS)
Warning message:
In data(IRIS) : data set 'IRIS' not found
> IRIS <- iris[,1:4]
> iris.pca <- mvPCA(IRIS, "sign", "i")
> plot(iris.pca, type="lines")
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>