R/methods.R
annotation_numeric-method.Rd
`annotation_numeric()` from an `InputHeatmap` object adds a numeric annotation layer.
[Mangiola and Papenfuss, 2020](https://joss.theoj.org/papers/10.21105/joss.02472)
A `tbl_df` formatted as | <ELEMENT> | <FEATURE> | <VALUE> | <...> |
Vector of quotes
A character vector of colours, or a function such as colorRamp2 (see examples).
A grid::unit object, e.g. unit(2, "cm"). This is the height or width of the annotation depending on the orientation.
A function to format the numeric labels. By default, it formats numbers to two decimal places using `sprintf(" supply any function that takes a numeric vector and returns a character vector for customised formatting.
The arguments that will be passed to
anno_numeric
and
HeatmapAnnotation
if you want to fine tune the aesthetics.
An `InputHeatmap` object that gets evaluated to a `ComplexHeatmap`.
An `InputHeatmap` object that gets evaluated to a `ComplexHeatmap`.
maturing
It uses `ComplexHeatmap` as the visualisation tool.
Mangiola, S. and Papenfuss, A.T., 2020. "tidyHeatmap: an R package for modular heatmap production based on tidy principles." Journal of Open Source Software. doi:10.21105/joss.02472.