scale_fontsize: Scale font size

Description Usage Arguments Value Detaisl Examples

View source: R/ht_clusters.R

Description

Scale font size

Usage

1
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.

Value

A numeric vector.

Detaisl

It is a linear interpolation.

Examples

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

simplifyEnrichment documentation built on Nov. 8, 2020, 5:07 p.m.