scale_fontsize: Scale font size

View source: R/ht_clusters.R

scale_fontsizeR Documentation

Scale font size

Description

Scale font size

Usage

scale_fontsize(x, rg = c(1, 30), fs = c(4, 16))

Arguments

x

A numeric vector.

rg

The range.

fs

Range of the font size.

Details

It is a linear interpolation.

Value

A numeric vector.

Examples

x = runif(10, min = 1, max = 20)
# scale x to fontsize 4 to 16.
scale_fontsize(x)

jokergoo/simplifyGO documentation built on Sept. 18, 2024, 9:45 p.m.