HeatmapView: Draw heatmap

View source: R/HeatmapView.R

HeatmapViewR Documentation

Draw heatmap

Description

Draw heatmap

Usage

HeatmapView(
  mat,
  limit = c(-2, 2),
  na_col = "gray70",
  colPal = rev(colorRampPalette(c("#c12603", "white", "#0073B6"), space = "Lab")(199)),
  filename = NA,
  width = NA,
  height = NA,
  ...
)

Arguments

mat

Matrix like object, each row is gene and each column is sample.

limit

Max value in heatmap

na_col

Color for missing values

colPal

colorRampPalette.

filename

File path where to save the picture.

width

Manual option for determining the output file width in inches.

height

Manual option for determining the output file height in inches.

...

Other parameters in pheatmap.

Value

Invisibly a pheatmap object that is a list with components.

Author(s)

Wubing Zhang

Examples

file3 = file.path(system.file("extdata", package = "MAGeCKFlute"),
"testdata/mle.gene_summary.txt")
dd = ReadBeta(file3)
gg = cor(dd[,2:ncol(dd)])
HeatmapView(gg, display_numbers = TRUE)


WubingZhang/MAGeCKFlute documentation built on Jan. 27, 2024, 2:43 p.m.