View source: R/plot_features.R
plotFeatures | R Documentation |
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.
plotFeatures(features, sim.mat = NULL)
features |
|
sim.mat |
|
Object of class ggplot
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.