Learn R Programming

tidyHeatmap (version 1.0.1)

plot_heatmap: plot_heatmap

Description

plot_heatmap() takes a tbl object and easily produces a ComplexHeatmap plot, with integration with tibble and dplyr frameworks.

Usage

plot_heatmap(
  .data,
  .horizontal,
  .vertical,
  .abundance,
  annotation = NULL,
  type = rep("tile", length(quo_names(annotation))),
  transform = NULL,
  .scale = "row",
  palette_abundance = c("#440154FF", "#21908CFF", "#fefada"),
  palette_discrete = list(),
  palette_continuous = list(),
  ...
)

Arguments

.data

A `tbl` formatted as | <SAMPLE> | <TRANSCRIPT> | <COUNT> | <...> |

.horizontal

The name of the column horizontally presented in the heatmap

.vertical

The name of the column vertically presented in the heatmap

.abundance

The name of the transcript/gene abundance column

annotation

Vector of quotes

type

A character vector of the set c(\"tile\", \"point\", \"bar\", \"line\")

transform

A function, used to tranform .value, for example log1p

.scale

A character string. Possible values are c(\"none\", \"row\", \"column\", \"both\")

palette_abundance

A character vector, or a function for higher customisation (colorRamp2). This is the palette that will be used as gradient for abundance. If palette_abundance is a vector of hexadecimal colous, it should have 3 values. If you want more customisation, you can pass to palette_abundance a function, that is derived as for example `colorRamp2(c(-2, 0, 2), palette_abundance)`

palette_discrete

A list of character vectors. This is the list of palettes that will be used for horizontal and vertical discrete annotations. The discrete classification of annotations depends on the column type of your input tibble (e.g., character and factor).

palette_continuous

A list of character vectors. This is the list of palettes that will be used for horizontal and vertical continuous annotations. The continuous classification of annotations depends on the column type of your input tibble (e.g., integer, numerical, double).

...

Further arguments to be passed to ComplexHeatmap::Heatmap

Value

A `ComplexHeatmap` object

Details

To be added.