View source: R/analysis_dimReduction_ica.R
plotICA | R Documentation |
Create multiple scatterplots from ICA
plotICA(ica, components = seq(10), groups = NULL, ...)
ica |
Object resulting from |
components |
Numeric: independent components to plot |
groups |
Matrix: groups to plot indicating the index of interest of the samples (use clinical or sample groups) |
... |
Arguments passed on to
|
Multiple scatterplots as a pairsD3
object
Other functions to analyse independent components:
performICA()
data <- scale(USArrests)
ica <- fastICA::fastICA(data, n.comp=4)
plotICA(ica)
# Colour by groups
groups <- NULL
groups$sunny <- c("California", "Hawaii", "Florida")
groups$ozEntrance <- c("Kansas")
groups$novel <- c("New Mexico", "New York", "New Hampshire", "New Jersey")
plotICA(ica, groups=groups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.