calibrate_sizes: Function to scale values between two given limits

Description Usage Arguments Value Examples

View source: R/graphs.R

Description

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

Usage

1
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

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

Example output

HP:0000001 HP:0000006 
         3          1 

ontologyPlot documentation built on Feb. 10, 2021, 5:06 p.m.