Learn R Programming

ChemoSpec (version 4.2.8)

plotLoadings: Plot PCA Loadings for a Spectra Object

Description

Creates a multi-panel plot of loadings along with a reference spectrum.

Usage

plotLoadings(spectra, pca, loads = c(1), ref = 1, ...)

Arguments

Value

None. Side effect is a plot.

Rdversion

1.1

References

https://github.com/bryanhanson/ChemoSpec

See Also

See plot2Loadings to plot two loadings against each other.

Examples

Run this code
data(SrE.IR)
results <- c_pcaSpectra(SrE.IR, choice = "noscale")
myt <- expression(bolditalic(Serenoa)~bolditalic(repens)~bold(IR~Spectra))
plotLoadings(SrE.IR, results, main = myt,
	loads = 1:2, ref = 1)

Run the code above in your browser using DataLab