Learn R Programming

gapmap (version 1.0.0)

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

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

Value

a ggplot object

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