Learn R Programming

bubbleHeatmap (version 0.1.1)

getLayoutSizes: Recalculate Layout Sizes for bubbleHeatmap gTree

Description

This function recalculates the viewport layout dimensions for a bubbleHeatmap tree based on the sizes of the children grobs, and returns the updated tree. This is useful for matching widths exactly to grob dimensions in an updated drawing context, and for resetting any previous layout modifications.

Usage

getLayoutSizes(tree, unitBase)

Value

The input bubbleHeatmap gTree with viewport dimensions matched to the size of the children grobs.

Arguments

tree

A bubbleHeatmap gTree.

unitBase

The unitBase parameter used when the tree was created.