plot_heatmap() takes a tbl object and easily produces a ComplexHeatmap plot, with integration with tibble and dplyr frameworks.
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(),
...
)
A `tbl` formatted as | <SAMPLE> | <TRANSCRIPT> | <COUNT> | <...> |
The name of the column horizontally presented in the heatmap
The name of the column vertically presented in the heatmap
The name of the transcript/gene abundance column
Vector of quotes
A character vector of the set c(\"tile\", \"point\", \"bar\", \"line\")
A function, used to tranform .value, for example log1p
A character string. Possible values are c(\"none\", \"row\", \"column\", \"both\")
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)`
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).
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
A `ComplexHeatmap` object
To be added.