calibrate_sizes: Function to scale values between two given limits

View source: R/graphs.R

calibrate_sizesR Documentation

Function to scale values between two given limits

Description

Could be useful to modify a vector of sizes to between, say 1 and 3, before passing to 'onto_plot'.

Usage

calibrate_sizes(x, high, low)

Arguments

x

Numeric vector

high

Numeric value of largest size

low

Numeric value of smallest size

Value

Numeric vector

Examples

calibrate_sizes(c("HP:0000001"=10, "HP:0000006"=5), high=3, low=1)

ontologyPlot documentation built on May 29, 2024, 3:10 a.m.