Learn R Programming

ComplexHeatmap (version 1.10.2)

anno_barplot: Using barplot as annotation

Description

Using barplot as annotation

Usage

anno_barplot(x, baseline = "min", which = c("column", "row"), border = TRUE, bar_width = 0.6,
    gp = gpar(fill = "#CCCCCC"), ylim = NULL, axis = FALSE, axis_side = NULL,
    axis_gp = gpar(fontsize = 8), axis_direction = c("normal", "reverse"), ...)

Arguments

x
a vector of numeric values.
baseline
baseline for bars. The value should be "min" or "max", or a numeric value.
which
is the annotation a column annotation or a row annotation?
border
whether show border of the annotation compoment
bar_width
relative width of the bars, should less than one
gp
graphic parameters.
ylim
data ranges.
axis
whether add axis
axis_side
if it is placed as column annotation, value can only be "left" or "right". If it is placed as row annotation, value can only be "bottom" or "top".
axis_gp
graphic parameters for axis
axis_direction
if the annotation is row annotation, should the axis be from left to right (default) or follow the reversed direction?
...
for future use.

Value

Examples

Run this code
f = anno_barplot(rnorm(10))
grid.newpage(); f(1:10)

f = anno_barplot(rnorm(10), which = "row")
grid.newpage(); f(1:10)

Run the code above in your browser using DataLab