View source: R/S3methods-plot.R
plot.rcc | R Documentation |
This function provides scree plot of the canonical correlations.
## S3 method for class 'rcc'
plot(x, type = "barplot", ...)
x |
object of class inheriting from |
type |
Character, default "barplot" or any other type available in plot, as "l","b","p",.. |
... |
Not used |
none
Sébastien Déjean, Ignacio González, Al J Abadi
points
, barplot
, par
.
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, type = "point") #(default)
## Not run:
plot(nutri.res, type = "point", pch = 19, cex = 1.2,
col = c(rep("red", 3), rep("darkblue", 18)))
## 'barplot' type scree
plot(nutri.res, type = "barplot")
plot(nutri.res, type = "barplot", density = 20, col = "black")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.