Learn R Programming

heatmaply (version 1.4.2)

ggheatmap: ggplot heatmap equivalent to heatmaply

Description

This function produces a ggplot analogue of heatmaply figures using ggarrange. This function may not always support the same set of features as , and exporting the heatmaply object with, for example, orca or heatmaply(mtcars, file = "foo.png").

Usage

ggheatmap(
  ...,
  widths = NULL,
  heights = NULL,
  row_dend_left = FALSE,
  hide_colorbar = FALSE
)

Arguments

...

Passed to heatmaply

widths, heights

Relative widths and heights of plots.

row_dend_left

Logical argument controlling whether the row dendrogram is placed on the left of the plot.

hide_colorbar

Logical argument controlling whether the color bar (i.e.: the legend) is hidden.

Examples

Run this code
ggheatmap(mtcars)

Run the code above in your browser using DataLab