q2t: Function to convert coordinates between different coordinate...

View source: R/helpers.R

q2tR Documentation

Function to convert coordinates between different coordinate scales.

Description

This function takes as input query coordinates and a query range and convert them into coordinate scale defined by a target range.

Usage

q2t(x, q.range, t.range)

Arguments

x

A vector of coordinate values to be rescaled.

q.range

A vector containing min and max value for a query range.

t.range

A vector containing min and max value for a target range.

Value

A vector of rescaled coordinate values.

Author(s)

David Porubsky

Examples

## Convert query coordinates (x) from query range (q.range) to target range (t.range)
q2t(x = c(100, 1000), q.range = c(1, 2000), t.range = c(1, 100))


daewoooo/SVbyEye documentation built on March 31, 2024, 8:58 a.m.