if (checkForPackageWithVersion("ChemoSpec", 6.0)) {
library("ChemoSpec")
data(metMUD1)
pca <- c_pcaSpectra(metMUD1)
p1 <- plotScree(pca, style = "trad")
p1
p2 <- plotScree(pca, style = "alt")
p2
}
if (checkForPackageWithVersion("ChemoSpec2D", 0.5)) {
library("ChemoSpec2D")
data(MUD1)
mia <- miaSpectra2D(MUD1)
plotScree(mia, style = "alt")
}
Run the code above in your browser using DataLab