RightOf: RightOf

View source: R/dims.R

RightOfR Documentation

RightOf

Description

Generate dimension to the right of another object

Usage

RightOf(
  x = NULL,
  width = NULL,
  pad = 0.01,
  min.ratio = 0.02,
  v.aln = NULL,
  h.scale = NULL,
  h.scale.proportional = FALSE
)

Arguments

x

an object with dimension

width

the width of the new object (when NULL, set proportional to data)

pad

padding between the target and current

min.ratio

minimum ratio of dimensions when auto-scale

v.aln

object for vertical alignment (when NULL, set to x)

h.scale

object for horizontal scaling (when NULL, set to x)

h.scale.proportional

when h.scale is provided, whether to make proportional to data

Value

a dimension to the right of x

Examples

WHeatmap(matrix(rnorm(2000),nrow=40)) +
  WColorBarV(1:20, cmp=CMPar(), continuous=FALSE, RightOf())


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