Learn R Programming

tablesgg (version 0.9-1)

apply_scale: Apply a Scale Factor to Table Elements

Description

Apply a scale factor to table elements, to change their overall displayed size. This is an internal function, not intended to be called by package users.

Usage

apply_scale(x, type, scale)

Value

A data frame like x, with the columns containing scalable graphical properties multiplied by scale.

Arguments

x

A data frame containing table elements (entries, hvrules, or blocks).

type

Character string with the element type for x, one of entry, block, or hvrule.

scale

Numeric scalar; a multiplier used to increase or decrease the displayed size of all the elements in x.

See Also

grSpecs specifies which graphical properties are scalable for each element type.