lay_bind_row: Take two CustomLayout objects and combine by rows.

Description Usage Arguments Value Examples

View source: R/Layout.R

Description

Take two CustomLayout objects and combine by rows.

Usage

1
2
3
lay_bind_row(x, y, heights = c(1, 1), addmax = TRUE)

layRowBind(x, y, heights = c(1, 1), addmax = TRUE)

Arguments

x

object of class CustomLayout.

y

object of class CustomLayout.

heights

a vector with relative heights used in combining the x and y layouts.

addmax

if true (default) the ids of the plots in the second layout will be shifted by the number of plots in the first layout.

Value

CustomLayout object created from combining two CustomLayout.

Examples

1
2
3
4
l1 = lay_new(matrix(c(1:2),ncol = 2),widths=c(4,1))
l2 = lay_new(matrix(c(1:4),ncol = 2),widths=c(1,1))
lb = lay_bind_row(l1,l2)
lay_show(lb)

zzawadz/customLayout documentation built on June 9, 2021, 11:10 a.m.