Skip to contents

[Deprecated]

This function has been renamed to trackplot_combine().

Usage

draw_trackplot_grid(
  ...,
  labels,
  title = NULL,
  heights = rep(1, length(plots)),
  label_width = 0.2,
  label_style = list(fontface = "bold", size = 4)
)

Arguments

...

Plots in order from top to bottom, generally plain ggplots. To better accomodate many bulk tracks, patchwork objects which contain multiple tracks are also accepted. In this case, plot labels will be drawn from the attribute $patchwork$labels if present, rather than the labels argument.

labels

Text labels to display for each track

title

Text for overarching title of the plot

heights

Relative heights for each component plot. It is suggested to use 1 as standard height of a pseudobulk track.

label_width

Fraction of width that should be used for labels relative to the main track area

label_style

Arguments to pass to geom_text to adjust label text style

Value

A plot object with aligned genome plots. Each aligned row has the text label, y-axis, and plot body. The relative height of each row is given by heights. A shared title and x-axis are put at the top.