Description Usage Arguments Details Value Author(s) Examples
Decorate the heatmap dimension names
1 2 | decorate_dimnames(heatmap, code, slice = 1, which = c("column", "row"),
envir = new.env(parent = parent.frame()))
|
heatmap |
name of the heatmap |
code |
code that adds graphics in the selected heatmap body |
slice |
index of row slices in the heatmap |
which |
on rows or on columns? |
envir |
where to look for variables inside |
There is a viewport for row names and column names in the heatmap.
This function contructs the name of the viewport,
goes to the viewport by seekViewport
and applies code
to that viewport.
If you know the dimensions of the matrix, it is simple to calculate the position of every row name or column name in the heatmap. E.g., for the column column, the i^th name is located at:
1 2 | # assume nc is the number of columns
unit((i-0.5)/nc, "npc")
|
The function returns no value.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.