plotSingleICA: Create a scatterplot for ICA

View source: R/analysis_dimReduction_ica.R

plotSingleICAR Documentation

Create a scatterplot for ICA

Description

Create a scatterplot for ICA

Usage

plotSingleICA(ica, icX = 1, icY = 2, groups = NULL)

Arguments

ica

Object containing an ICA

icX

Character: name of the X axis

icY

Character: name of the Y axis

groups

Matrix: groups to plot indicating the index of interest of the samples (use clinical or sample groups)

Value

Scatterplot as an highcharter object

Examples

ica <- performICA(USArrests, scale=TRUE)
psichomics:::plotSingleICA(ica)
psichomics:::plotSingleICA(ica, icX=2, icY=3)

# 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")
psichomics:::plotSingleICA(ica, groups=groups)

nuno-agostinho/psichomics documentation built on Feb. 11, 2024, 11:16 p.m.