... | ... |
@@ -1338,7 +1338,7 @@ anno_barplot = function(x, baseline = 0, which = c("column", "row"), border = TR |
1338 | 1338 |
} else { |
1339 | 1339 |
txt = value_origin[index] |
1340 | 1340 |
if(!is.null(attr(value, "labels_format"))) { |
1341 |
- txt = attr(value, "labels_format")(value[index]) |
|
1341 |
+ txt = attr(value, "labels_format")(value_origin[index]) |
|
1342 | 1342 |
} |
1343 | 1343 |
grid.text(txt, x = unit(baseline + width, "native") - numbers_offset, y = n - seq_along(index) + 1, default.units = "native", gp = subset_gp(numbers_gp, index), just = c("right"), rot = numbers_rot) |
1344 | 1344 |
} |