set_layers {locuszoomr}R 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()


[Package locuszoomr version 0.3.0 Index]