Description Usage Arguments Details Value Author(s) Examples
Decorate the heatmap body
1 | decorate_heatmap_body(heatmap, code, slice = 1, envir = new.env(parent = parent.frame()))
|
heatmap |
name of the heatmap which is set as |
code |
code that adds graphics in the selected heatmap body |
slice |
index of row slices in the heatmap if it is split by rows |
envir |
where to look for variables inside |
There is a viewport for each row slice in each 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 number of rows and columns for that row slice, it is simple to calculate the position of every small grid in the row slice. E.g., the position for the grid in i^th row and j^th column is:
1 2 3 4 5 6 7 8 9 10 |
This function returns no value.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 | set.seed(123)
Heatmap(matrix(rnorm(100), 10), name = "mat")
decorate_heatmap_body("mat", {
grid.circle(gp = gpar(fill = "#FF000080"))
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.