Learn R Programming

Momocs (version 1.0.0)

boxplot.PCA: Boxplot on PCA objects

Description

Boxplot on PCA objects

Usage

"boxplot"(x, fac = NULL, nax = 1:5, ...)

Arguments

x
an object of class "PCA", typically obtained with PCA
fac
factor, or a name or the column id from the $fac slot
nax
the range of PC to plot
...
useless here

Value

a ggplot object

Examples

Run this code
data(bot)
bot.f <- efourier(bot, 12)
bot.p <- PCA(bot.f)
boxplot(bot.p)
p <- boxplot(bot.p, 1)
#p +  theme_minimal() + scale_fill_grey()
#p + facet_wrap(~PC, scales = "free")

Run the code above in your browser using DataLab