gap_heatmap: Function to draw a gapped heatmap

Description Usage Arguments Value

View source: R/gap_heatmap.R

Description

This function draws a gapped heatmap using the ggplot2 package. The input for the function are the gapdata class objects, generated from gap_data() function, and the data matrix.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
gap_heatmap(
  m,
  row_gap = NULL,
  col_gap = NULL,
  row_labels = TRUE,
  col_labels = TRUE,
  rotate = FALSE,
  col = c("#053061", "#2166AC", "#4393C3", "#92C5DE", "#D1E5F0", "#F7F7F7", "#FDDBC7",
    "#F4A582", "#D6604D", "#B2182B", "#67001F")
)

Arguments

m

data matrix

row_gap

a gapdata class object for rows

col_gap

a gapdata class object for columns

row_labels

a logical to show labels for rows

col_labels

a logical to show lables for columns

rotate

a logical to rotate row labels

col

colors used for heatmap

Value

a ggplot object


gapmap documentation built on April 19, 2021, 5:06 p.m.