Learn R Programming

Momocs (version 1.4.1)

boxplot.PCA: Boxplot on PCA objects

Description

Boxplot on PCA objects

Usage

# S3 method for PCA
boxplot(x, fac = NULL, nax, ...)

Value

a ggplot object

Arguments

x

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 (1 to 99pc total variance by default)

...

useless here

Examples

Run this code
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