TopRightOf: Top right of

View source: R/dims.R

TopRightOfR Documentation

Top right of

Description

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

Usage

TopRightOf(x = NULL, just = c("left", "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'), TopRightOf(just=c('left','bottom')))

WHeatmap(matrix(rnorm(2000),nrow=40)) +
  WHeatmap(matrix(c(rnorm(100)+1,rnorm(100)), nrow=10),
    cmp=CMPar(brewer.name = 'RdGy'), TopRightOf(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'), TopRightOf(just=c('left','top')))

zwdzwd/wheatmap documentation built on March 17, 2022, 10:49 p.m.