R/methods.R
heatmap-method.Rd
heatmap() takes a tbl object and easily produces a ComplexHeatmap plot, with integration with tibble and dplyr frameworks.
heatmap(
.data,
.row,
.column,
.value,
transform = NULL,
scale = "none",
palette_value = c("#440154FF", "#21908CFF", "#fefada"),
palette_grouping = list(),
.scale = NULL,
...
)
heatmap_(
.data,
.row,
.column,
.value,
transform = NULL,
scale = "none",
palette_value = c("#440154FF", "#21908CFF", "#fefada"),
palette_grouping = list(),
.scale = NULL,
...
)
# S4 method for class 'tbl'
heatmap(
.data,
.row,
.column,
.value,
transform = NULL,
scale = "none",
palette_value = c("#440154FF", "#21908CFF", "#fefada"),
palette_grouping = list(),
.scale = NULL,
...
)
# S4 method for class 'tbl_df'
heatmap(
.data,
.row,
.column,
.value,
transform = NULL,
scale = "none",
palette_value = c("#440154FF", "#21908CFF", "#fefada"),
palette_grouping = list(),
.scale = NULL,
...
)
[Mangiola and Papenfuss., 2020](https://joss.theoj.org/papers/10.21105/joss.02472)
A `tbl_df` formatted as | <ELEMENT> | <FEATURE> | <VALUE> | <...> |
The name of the column vertically presented in the heatmap
The name of the column horizontally presented in the heatmap
The name of the column for the value of the element/feature pair
A function, used to transform .value row-wise (e.g., transform = log1p)
A character string. Possible values are c(\"none\", \"row\", \"column\", \"both\")
A character vector This is the palette that will be used as gradient for .value. For example c("red", "white", "blue"). For higher flexibility you can use circlize::colorRamp2\(c\(-2, -1, 0, 1, 2\), viridis::magma\(5\)\)
A list of character vectors. This is the list of palettes that will be used for grouping. For example list(RColorBrewer::brewer.pal(8, "Accent")) or list(c("#B3E2CD", "#FDCDAC", "#CBD5E8")) or list(c("black", "red"))
DEPRECATED. please use scale instead \( with no dot prefix \).
The arguments that will be passed to the Heatmap function of ComplexHeatmap backend
A `InputHeatmap` objects that gets evaluated to a `ComplexHeatmap` object
A `InputHeatmap` object
A `InputHeatmap` object
A `InputHeatmap` object
maturing
This function takes a tbl as an input and creates a `ComplexHeatmap` plot. The information is stored in a `InputHeatmap` object that is updated along the pipe statement, for example adding annotation layers.
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.