plotAssociationH: Plot to visualize association among DECO subclasses and...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/plotAssociationH.R

Description

This function returns three plots showing the association among different sample subclasses found by DECO and any sample information of interest. This information can be the initial classes or any new included sample information.

Usage

1
plotAssociationH(deco, info.sample)

Arguments

deco

a "deco" R object generated by 'decoNSCA' R function.

info.sample

a character vector or factor including the sample information.

Details

This function provides a simple comparison of any phenotype characteristic and new DECO subclasses.

Value

Violin plot: distribution of average h-statistic values (per feature) within the newly provided categories of samples, splitting by the subsets of features associated to each DECO subclass.

Left-heatmap: frequency table of samples among DECO subclasses and newly provided sample categories. Right-heatmap: frequency table of features among DECO subclasses and newly provided sample categories.

Author(s)

Francisco Jose Campos Laborie. <fjcamlab@gmail.com>

See Also

decoRDA, decoNSCA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#### Further information in DECO vignette(s).
## Run after decoRDA and decoNSCA steps on 'ALCLdata'
data(ALCLdata)
ALCL

### Sample source information
info.sample <- as.data.frame(colData(ALCL))[,"Sample.origin"]
names(info.sample) <- rownames(colData(ALCL))

#### Comparing DECO subclasses against source of samples.
plotAssociationH(deco.results.ma, info.sample)

deco documentation built on Nov. 8, 2020, 7:45 p.m.