rescale_x_2: Bi-Directional x and y axis Rescaling

View source: R/syuzhet.R

rescale_x_2R Documentation

Bi-Directional x and y axis Rescaling

Description

Rescales input values to two scales (0 to 1 and -1 to 1) on the y-axis and also creates a scaled vector of x axis values from 0 to 1. This function is useful for plotting and plot comparison.

Usage

rescale_x_2(v)

Arguments

v

A vector of values

Value

A list of three vectors (x, y, z). x is a vector of values from 0 to 1 equal in length to the input vector v. y is a scaled (from 0 to 1) vector of the input values equal in length to the input vector v. z is a scaled (from -1 to +1) vector of the input values equal in length to the input vector v.


syuzhet documentation built on Aug. 12, 2023, 1:05 a.m.