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.
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")
)
a ggplot object
data matrix
a gapdata class object for rows
a gapdata class object for columns
a logical to show labels for rows
a logical to show lables for columns
a logical to rotate row labels
colors used for heatmap