boxplot.PCA: Boxplot on PCA objects

Description Usage Arguments Value Examples

View source: R/gr-PCA.R

Description

Boxplot on PCA objects

Usage

1
2
## S3 method for class 'PCA'
boxplot(x, fac = NULL, nax = 1:3, ...)

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

1
2
3
4
5
6
7
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")

Example output

This is Momocs 1.1.6

Attaching package: 'Momocs'

The following object is masked from 'package:stats':

    filter

The following object is masked from 'package:base':

    table

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 

Momocs documentation built on Sept. 28, 2017, 9:04 a.m.