plotHeatmap: Plot Heatmap

Description Usage Arguments Value Examples

View source: R/plotHeatmap.R

Description

This function plots a heatmap figure form a distance or similarity matrix. The colors denote the sample types based on label.

Usage

1
plotHeatmap(dists, label)

Arguments

dists

A distance or similarity matrix.

label

True labels of sample.

Value

This function returns a heatmap object invisibly.

Examples

1
2
3
4
5
6
library(gplots)
library(RColorBrewer)
load(system.file("data","yan.Rdata",package = "scNPF"))
data.dist <- as.matrix(dist(t(yan$data)))
#dev.off()
plotHeatmap(data.dist,yan$label)

BMILAB/scNPF documentation built on Nov. 19, 2020, 1:41 a.m.