Adjust labels and heights on trackplots. Labels are set as facet labels in ggplot2, and heights
are additional properties read by trackplot_combine()
to determine relative height of input plots.
Usage
set_trackplot_label(plot, labels)
set_trackplot_height(plot, height)
get_trackplot_height(plot)
Arguments
- plot
ggplot object
- labels
character vector of labels – must match existing number of facets in plot
- height
New height. If numeric, adjusts relative height. If
ggplot2::unit
orgrid::unit
sets absolute height in specified units."null"
units are interpreted as relative height.
Value
set_trackplot_label: ggplot object with adjusted facet labels
set_trackplot_height: ggplot object with adjusted trackplot height
get_trackplot_height: ggplot2::unit
object with height setting