Description Usage Arguments Value Author(s) Examples
Using text as annotation
1 2 |
x |
a vector of text |
which |
is the annotation a column annotation or a row annotation? |
gp |
graphic parameters. |
rot |
rotation of text |
just |
justification of text, pass to |
offset |
if it is a row annotation, |
A graphic function which can be set in HeatmapAnnotation
constructor method.
Zuguang Gu <z.gu@dkfz.de>
1 2 3 4 5 6 | mat = matrix(rnorm(100), 10)
colnames(mat) = letters[1:10]
rownames(mat) = LETTERS[1:10]
long_cn = do.call("paste0", rep(list(colnames(mat)), 4)) # just to construct long text
ha_rot_cn = HeatmapAnnotation(text = anno_text(long_cn, rot = 45, offset = unit(5, "mm")))
Heatmap(mat, name = "foo", top_annotation = ha_rot_cn, top_annotation_height = unit(1.2, "cm"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.