# NOT RUN {
library("ggplot2")
data(MUD1)
res <- popSpectra2D(MUD1)
# plotScores & plotScree use ggplot2 graphics
p1 <- plotScores(MUD1, res, ellipse = "cls")
p1 <- p1 + ggtitle("POP Scores")
p1
p2 <- plotScree(res)
p2
# plotLoadings2D uses base graphics
MUD1a <- plotLoadings2D(MUD1, res,
load_lvls = c(-0.2, -0.1, 0.1, 0.2),
load_cols = rep("black", 4), main = "POP Comp. 1 Loadings")
# }
Run the code above in your browser using DataLab