View source: R/plotAssociationH.R
plotAssociationH | R Documentation |
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.
plotAssociationH(deco, info.sample)
deco |
a "deco" R object generated by 'decoNSCA' R function. |
info.sample |
a character vector or factor including the sample information. |
This function provides a simple comparison of any phenotype characteristic and new DECO subclasses.
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.
Francisco Jose Campos Laborie. <fjcamlab@gmail.com>
decoRDA
, decoNSCA
#### 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.