plot.rcc: Canonical Correlations Plot

Description Usage Arguments Author(s) See Also Examples

View source: R/plot.rcc.R

Description

This function provides scree plot of the canonical correlations.

Usage

1
2
## S3 method for class 'rcc'
plot(x, scree.type = c("pointplot", "barplot"), ...)

Arguments

x

object of class inheriting from "rcc".

scree.type

character string, (partially) matching one of "pointplot" or "barplot", determining the kind of scree plots to be produced.

...

arguments to be passed to other methods. For the "pointplot" type see points, for "barplot" type see barplot.

Author(s)

Sébastien Déjean and Ignacio González.

See Also

points, barplot, par.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(nutrimouse)
X <- nutrimouse$lipid
Y <- nutrimouse$gene
nutri.res <- rcc(X, Y, lambda1 = 0.064, lambda2 = 0.008)

## 'pointplot' type scree 
plot(nutri.res) #(default)

plot(nutri.res, pch = 19, cex = 1.2, 
     col = c(rep("red", 3), rep("darkblue", 18)))

## 'barplot' type scree
plot(nutri.res, scree.type = "barplot")

plot(nutri.res, scree.type = "barplot", density = 20, col = "black")

Example output

Loading required package: MASS
Loading required package: lattice
Loading required package: ggplot2

Loaded mixOmics 6.3.2

Thank you for using mixOmics!

How to apply our methods: http://www.mixOmics.org for some examples.
Questions or comments: email us at mixomics[at]math.univ-toulouse.fr  
Any bugs? https://bitbucket.org/klecao/package-mixomics/issues
Cite us:  citation('mixOmics')
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 

mixOmics documentation built on June 1, 2018, 5:06 p.m.

Related to plot.rcc in mixOmics...