-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathlayer_text-method.Rd
59 lines (49 loc) · 1.68 KB
/
layer_text-method.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods.R
\docType{methods}
\name{layer_text}
\alias{layer_text}
\alias{layer_text,InputHeatmap-method}
\title{Adds a layers of texts above the heatmap tiles to a `InputHeatmap`, that on evaluation creates a `ComplexHeatmap`}
\source{
[Mangiola and Papenfuss., 2020](https://joss.theoj.org/papers/10.21105/joss.02472)
}
\usage{
layer_text(.data, ..., .value, .size = NULL)
\S4method{layer_text}{InputHeatmap}(.data, ..., .value, .size = NULL)
}
\arguments{
\item{.data}{A `InputHeatmap`}
\item{...}{Expressions that return a logical value, and are defined in terms of the variables in .data. If multiple expressions are included, they are combined with the & operator. Only rows for which all conditions evaluate to TRUE are kept.}
\item{.value}{A column name or character string.}
\item{.size}{A column name or a double. The size of the elements of the layer.}
}
\value{
A `InputHeatmap` object that gets evaluated to a `ComplexHeatmap`
A `InputHeatmap` object that gets evaluated to a `ComplexHeatmap`
}
\description{
layer_text() from a `InputHeatmap` object, adds a text annotation layer.
}
\details{
\lifecycle{maturing}
It uses `ComplexHeatmap` as visualisation tool.
}
\examples{
library(dplyr)
hm =
tidyHeatmap::N52 |>
mutate(my_text = "t") |>
tidyHeatmap::heatmap(
.row = symbol_ct,
.column = UBR,
.value = `read count normalised log`
)
hm |> layer_text(.value = "a")
hm |> layer_text(.value = my_text)
}
\references{
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.
}