View source: R/AnnotationFunction-function.R
anno_numeric | R Documentation |
Numeric labels annotation
anno_numeric(x, rg = range(x), labels_gp = gpar(), x_convert = NULL,
labels_format = NULL, labels_offset = unit(4, "pt"),
bg_gp = gpar(fill = "#8080FF", col = "#8080FF"),
bar_width = unit(1, "npc") - unit(4, "pt"),
round_corners = TRUE, r = unit(0.05, "snpc"),
which = c("row", "column"), align_to = "left", width = NULL)
x |
A vector of numeric values. |
rg |
Range. A numeric vector of length two. |
labels_gp |
Graphics parameters for labels. |
x_convert |
A function applied on |
labels_format |
A function applied on |
labels_offset |
Offset of labels to the left or right of bars. |
bg_gp |
Graphics parameters for the background bars. |
bar_width |
Width of bars. Note it corresponds to the vertical direction. |
round_corners |
Whether to draw bars with round corners? |
r |
Radius of the round corners. |
which |
Row or column. Currently it only supports row annotation. |
align_to |
Which side bars as well as the labels are aligned to. Values can be "left" or "right". If |
width |
Width of the annotation. |
m = matrix(rnorm(100), 10)
x = rnorm(10)
Heatmap(m, right_annotation = rowAnnotation(numeric = anno_numeric(x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.