Function to draw a gapped heatmap

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
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

...

ignored

Value

a ggplot object