-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Description
Hello,
There is an unwanted interaction between anno_barplot parameters axis_param = list(direction = "reverse") and add_numbers=TRUE.
Correct behavior:
set.seed(123)
lt = list(a = sample(letters, 5),
b = sample(letters, 10),
c = sample(letters, 15))
m1 = make_comb_mat(lt)
top_ha = HeatmapAnnotation(
"normal" = anno_barplot(comb_size(m1),
gp = gpar(fill = "red"),
height = unit(2, "cm"),
add_numbers=TRUE),
"reverse" = anno_barplot(comb_size(m1),
gp = gpar(fill = "yellow"),
height = unit(2, "cm"),
axis_param = list(direction = "reverse")),
gap = unit(2, "mm"), annotation_name_side = "left", annotation_name_rot = 0)
UpSet(m1, top_annotation = top_ha)
Incorrect behavior:
top_ha = HeatmapAnnotation(
"normal" = anno_barplot(comb_size(m1),
gp = gpar(fill = "red"),
height = unit(2, "cm")),
"reverse" = anno_barplot(comb_size(m1),
gp = gpar(fill = "yellow"),
height = unit(2, "cm"),
axis_param = list(direction = "reverse"),
add_numbers=TRUE),
gap = unit(2, "mm"), annotation_name_side = "left", annotation_name_rot = 0)
UpSet(m1, top_annotation = top_ha)
There are two issues here:
- The numbers are wrong (they correspond to something like
barplot height - correct number) - Their positition is incorrect, I would expect them to be below the bars, and not overlapping them
Best,
Theo
Edit 1:
This is with ComplexHeatmap_2.22.0 with R 4.4.2
Metadata
Metadata
Assignees
Labels
No labels

