add_bar() from a `InputHeatmap` object, adds a bar annotation layer.

add_bar(.data, .column, palette = NULL)

Arguments

.data

A `tbl_df` formatted as | <ELEMENT> | <FEATURE> | <VALUE> | <...> |

.column

Vector of quotes

palette

A character vector of colors 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).

Value

A `InputHeatmap` object that gets evaluated to a `ComplexHeatmap`

Details

Maturing lifecycle

It uses `ComplexHeatmap` as visualisation tool.

Examples

library(dplyr)
#> #> Attaching package: ‘dplyr’
#> The following objects are masked from ‘package:stats’: #> #> filter, lag
#> The following objects are masked from ‘package:base’: #> #> intersect, setdiff, setequal, union
hm = tidyHeatmap::N52 %>% tidyHeatmap::heatmap( .row = symbol_ct, .column = UBR, .value = `read count normalised log` ) hm %>% add_bar()