R/heatmaps-varAnnotation.R
varAnnotation.Rd
Helper to specify a HeatmapAnnotation for variables in cor_heatmap
varAnnotation(
...,
name,
annotation_legend_param = list(),
show_legend = TRUE,
gp = grid::gpar(col = NA),
border = FALSE,
gap = grid::unit(2, "mm"),
show_annotation_name = TRUE,
annotation_label = NULL,
annotation_name_gp = grid::gpar(),
annotation_name_offset = NULL,
annotation_name_rot = NULL,
annotation_name_align = FALSE,
annotation_name_side = "auto",
.data = NULL,
.vars = NULL,
.side = NULL
)
Name-value pairs where the names correspond to annotation names and values are the output of variable annotation functions such as anno_var_box(), or manually specified AnnotationFunction objects
Name of the heatmap annotation, optional.
A list which contains parameters for annotation legends. See color_mapping_legend,ColorMapping-method
for all possible options.
Whether show annotation legends. The value can be one single value or a vector.
Graphic parameters for simple annotations (with fill
parameter ignored).
border of single annotations.
Gap between annotations. It can be a single value or a vector of unit
objects.
Whether show annotation names? For column annotation, annotation names are drawn either on the left or the right, and for row annotations, names are draw either on top or at the bottom. The value can be a vector.
Labels for the annotations. By default it is the same as individual annotation names.
Graphic parameters for annotation names. Graphic parameters can be vectors.
Offset to the annotation names, a unit
object. The value can be a vector.
Rotation of the annotation names. The value can be a vector.
Whether to align the annotation names.
Side of the annotation names.
OPTIONAL phyloseq or psExtra, only set this to override use of same data as in heatmap
OPTIONAL selection vector of variables (names, numbers or logical), only set this if providing .data argument to override default
OPTIONAL string, indicating the side for the variable annotations: only set this to override default
HeatmapAnnotation object