plotFeatures {stabm} | R Documentation |
Plot Selected Features
Description
Creates a heatmap of the features which are selected in at least one feature set.
The sets are ordered according to average linkage hierarchical clustering based on the Manhattan
distance. If sim.mat
is given, the features are ordered according to average linkage
hierarchical clustering based on 1 - sim.mat
. Otherwise, the features are ordered in
the same way as the feature sets.
Note that this function needs the packages ggplot2, cowplot and ggdendro installed.
Usage
plotFeatures(features, sim.mat = NULL)
Arguments
features |
|
sim.mat |
|
Value
Object of class ggplot
.
Examples
feats = list(1:3, 1:4, 1:5)
mat = 0.92 ^ abs(outer(1:10, 1:10, "-"))
plotFeatures(features = feats)
plotFeatures(features = feats, sim.mat = mat)