chimeraviz-internals-scaleListToInterval: Scale a vector of numeric values to an interval.

chimeraviz-internals-scaleListToIntervalR Documentation

Scale a vector of numeric values to an interval.

Description

This function takes a vector of numeric values as well as an interval [new_min, new_max] that the numeric values will be scaled (normalized) to.

Usage

.scale_list_to_interval(the_list, new_min, new_max)

Arguments

the_list

A vector of numeric values.

new_min

Minimum value for the new interval.

new_max

Maximum value for the new interval.

Value

A data frame with fusion link data compatible with RCircos::RCircos.Link.Plot()

# @examples # Apparently examples shouldn't be set on private functions list012 <- c(0,1,2) .scale_list_to_interval(list012, 1, 3) # [1] 1 2 3


stianlagstad/chimeraviz documentation built on Dec. 3, 2023, 8:11 p.m.