set_layers: Set up a column of multiple plots

View source: R/set_layers.R

set_layersR Documentation

Set up a column of multiple plots

Description

Uses layout() to set up multiple locus plots aligned in a column.

Usage

set_layers(n = 1, heights = c(rep(3, n), 2), rev = FALSE)

Arguments

n

Number of plots (not including gene tracks on bottom)

heights

Vector of length nrow + 1 specifying height for plots with a gene track on the bottom

rev

Logical whether to reverse plotting order and plot from bottom to top

Value

Sets layout() to enable multiple plots aligned in a column. The gene track is assumed to be positioned on the bottom. Returns par() invisibly so that layout can be reset to default at the end of plotting.

See Also

layout()


myles-lewis/locuszoomr documentation built on Nov. 29, 2024, 4:49 p.m.