gap_heatmap | R Documentation |
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")
)
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 |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.