Learn R Programming

PAC (version 1.0.1)

clusterPropHeatmap: Make heatmap illustrating the cluster proportions across multiple samples. The aggregated data are first padded to assign size of 0 to missing clusters in some samples. Next, the numbers of events in each cluster in each sample are obtained. These values are normalized across samples to find the cluster proportions by samples. The higher the cluster proportion in one sample, the more specific the cluster is to that sample.

Description

Make heatmap illustrating the cluster proportions across multiple samples. The aggregated data are first padded to assign size of 0 to missing clusters in some samples. Next, the numbers of events in each cluster in each sample are obtained. These values are normalized across samples to find the cluster proportions by samples. The higher the cluster proportion in one sample, the more specific the cluster is to that sample.

Usage

clusterPropHeatmap(data_agg, Colv_order)

Arguments

data_agg
Variable name of aggregated data.
Colv_order
Variable vector specifying the order of heatmap columns

Value

  • Plots cluster proportion heatmap plot and returns a matrix of the proportion values.