TopLeftOf: Top left of

View source: R/dims.R

TopLeftOfR Documentation

Top left of

Description

Place a new object to the top left corner of another.

Usage

TopLeftOf(x = NULL, just = c("right", "bottom"), v.pad = 0, h.pad = 0)

Arguments

x

target object, either a name, a object or NULL which refers to the last plotting object

just

the part from the new object that should be attached to

v.pad

vertical translational padding [0.0]

h.pad

horizontal translational padding [0.0]

Value

a WDimGenerator

Examples

WHeatmap(matrix(rnorm(2000),nrow=40)) +
  WHeatmap(matrix(c(rnorm(100)+1,rnorm(100)), nrow=10),
    cmp=CMPar(brewer.name = 'RdGy'), TopLeftOf(just=c('right','bottom')))

WHeatmap(matrix(rnorm(2000),nrow=40)) +
  WHeatmap(matrix(c(rnorm(100)+1,rnorm(100)), nrow=10),
    cmp=CMPar(brewer.name = 'RdGy'), TopLeftOf(just=c('right','top')))

WHeatmap(matrix(rnorm(2000),nrow=40)) +
  WHeatmap(matrix(c(rnorm(100)+1,rnorm(100)), nrow=10),
    cmp=CMPar(brewer.name = 'RdGy'), TopLeftOf(just=c('left','top')))

wheatmap documentation built on March 18, 2022, 6:43 p.m.