plotSingleICA: Create a scatterplot for ICA

Description Usage Arguments Value Examples

View source: R/analysis_dimReduction_ica.R

Description

Create a scatterplot for ICA

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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)

psichomics documentation built on Nov. 8, 2020, 5:44 p.m.