Skip to contents

Boxplot on PCA objects

Usage

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

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

Value

a ggplot object

Examples

bot.f <- efourier(bot, 12)
#> 'norm=TRUE' is used and this may be troublesome. See ?efourier #Details
bot.p <- PCA(bot.f)
boxplot(bot.p)
#> `prop` not provided. All axes returned

p <- boxplot(bot.p, 1)
#> `prop` not provided. All axes returned
#p +  theme_minimal() + scale_fill_grey()
#p + facet_wrap(~PC, scales = "free")