plotRamanLoading: Plot PCA loadings for Raman

Description Usage Arguments Examples

Description

Plot PCA loadings for Raman

Usage

1
2
plotRamanLoading(PCA, ncomp = 1:6, xlab = "Raman shift (1/cm)",
  ylab = "loading", ...)

Arguments

PCA

output variable from prcomp

ncomp

a vector of number of components

ylab

y-axis label

...

additional arguments for matplot

Examples

1
2
3
4
5
data(raman)
PCA <- prcomp(raman)
plotRamanLoading(PCA)
plotRamanLoading(PCA, ncomp = 1:2) # display only the first two components
plotRamanLoading(PCA, ncomp = c(1,3)) # display only the first and the third component

chengvt/cheng documentation built on May 13, 2019, 3:52 p.m.