bb_annoHeatmapLegend.Rd
adds color scale legend for heatmap plots
bb_annoHeatmapLegend( plot, x, y, width, height, params = NULL, border = FALSE, orientation = "v", fontsize = 8, fontcolor = "dark grey", just = c("left", "top"), default.units = "inches", ... )
plot | plot to add heatmap legend for |
---|---|
x | A numeric vector or unit object specifying x-location |
y | A numeric vector or unit object specifying y-location |
width | A numeric vector or unit object specifying width |
height | A numeric vector or unit object specifying height |
params | an optional "bb_params" object space containing relevant function parameters |
border | option to add border around heatmap legend |
orientation | "v" (vertical) or "h" (horizontal) orientation |
fontsize | fontsize for text |
fontcolor | fontcolor for text |
just | justification of heatmap legend |
default.units | A string indicating the default units to use if x, y, width, or height are only given as numeric vectors |