arrangePlots {CrispRVariants} | R Documentation

## Arrange plots for plotVariants:CrisprSet

### Description

Arranges 3 plots in two rows. The vertical margins of the left.plot and right.plot constrained to be equal

### Usage

    arrangePlots(top.plot, left.plot, right.plot, fig.height = NULL,
      col.wdth.ratio = c(2, 1), row.ht.ratio = c(1, 6),
      left.plot.margin = grid::unit(c(0.1, 0, 3, 0.2), "lines"))

### Arguments

`top.plot` | ggplot grob, placed on top of the figure, spanning the figure width
`left.plot` | ggplot, placed in the second row on the left
`right.plot` | ggplot, placed in the second row on the right. y-axis labels are removed.
`fig.height` | Actual height for the figure. If not provided, figure height is the sum of the row.ht.ratio (Default: NULL)
`col.wdth.ratio` | Vector specifying column width ratio (Default: c(2, 1))
`row.ht.ratio` | Vector specifying row height ratio (Default: c(1,6))
`left.plot.margin` | Unit object specifying margins of left.plot. Margins of right.plot are constrained by the left.plot.

### Value

The arranged plots

[Package CrispRVariants version 1.22.0 Index]