add_tile-methods: Adds a tile annotation layer to a 'InputHeatmap', that on...

Description Usage Arguments Details Value Examples

Description

add_tile() from a 'InputHeatmap' object, adds a tile annotation layer.

Usage

1
2
3
4
add_tile(.data, .column, palette = NULL)

## S4 method for signature 'InputHeatmap'
add_tile(.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).

Details

\lifecycle

maturing

It uses 'ComplexHeatmap' as visualisation tool.

Value

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

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(dplyr)

hm = 
  tidyHeatmap::N52 %>%
  tidyHeatmap::heatmap(
    .row = symbol_ct,
    .column = UBR,
    .value = `read count normalised log`
)

hm %>% add_tile(CAPRA_TOTAL)

tidyHeatmap documentation built on July 7, 2021, 9:07 a.m.