man/decorate_title.rd
7f268eeb
 \name{decorate_title}
 \alias{decorate_title}
 \title{
 Decorate the heatmap title
 }
 \description{
 Decorate the heatmap title
 }
 \usage{
d240a4c0
 decorate_title(heatmap, code, slice = 1, which = c("column", "row"),
     envir = new.env(parent = parent.frame()))
ba8a5070
 }
7f268eeb
 \arguments{
 
   \item{heatmap}{name of the heatmap}
12e85497
   \item{code}{code that adds graphics in the selected heatmap body}
7f268eeb
   \item{slice}{index of row slices in the heatmap}
   \item{which}{on rows or on columns?}
d240a4c0
   \item{envir}{where to look for variables inside \code{code}}
ba8a5070
 
7f268eeb
 }
 \details{
12e85497
 There is a viewport for row titles and column title in the heatmap.
 This function contructs the name of the viewport,
7f268eeb
 goes to the viewport by \code{\link[grid]{seekViewport}} and applies code
 to that viewport.
 }
12e85497
 \value{
 The function returns no value.
 }
7f268eeb
 \author{
 Zuguang Gu <z.gu@dkfz.de>
 }
 \examples{
 set.seed(123)
 Heatmap(matrix(rnorm(100), 10), name = "mat", km = 2)
 decorate_title("mat", {
     grid.rect(gp = gpar(fill = "#FF000080"))
 }, which = "row", slice = 2)
 }