Learn R Programming

ontologyPlot (version 1.0)

calibrate_sizes: 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

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

Run the code above in your browser using DataLab