HeatmapView: Draw heatmap

Description Usage Arguments Value Author(s) Examples

View source: R/HeatmapView.R

Description

Draw heatmap

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

1
2
3
4
5
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)

MAGeCKFlute documentation built on Nov. 8, 2020, 5:40 p.m.