TopOf: Top of

View source: R/dims.R

TopOfR Documentation

Top of

Description

Generate dimension top of another object

Usage

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

Arguments

x

an object with dimension

height

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

pad

padding between the target and current

min.ratio

minimum ratio of dimensions when auto-scale

h.aln

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

v.scale

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

v.scale.proportional

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

Value

a dimension generator on top of x

Examples

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


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