build_header_labels.RdBuild colorful, rectangular labels for plot headers in plot space
build_header_labels(
data,
grouping,
group_order = NULL,
ymin,
label_height = 25,
label_type = "simple"
)A data.frame containing joined annotations and expression data
The base to use for grouping samples.
Alternate order to use for grouping if necessary. Default is NULL, which will use grouping_id.
The minimum y value for the bottom of the headers. In gene plot contexts, this will usually be the number of genes + 1
Percentage of the plot area that the headers should take up. Default = 25.
Either "simple", "angle", or "square". Simple is for use with grouped plots. Angle will scale the header bars to be equal width, with a layer of angled polygons connecting them to the data. Square will construct headers with rectangular bars that match the width of the samples in each group.