scale21: Scale data to site in (0,1) interval

Description Usage Arguments Author(s) Examples

View source: R/auxFuncs.R

Description

Scale data to site in (0,1) interval

Usage

1

Arguments

x

A vector of values

Author(s)

Hamed Haselimashhadi <hamedhaseli@gmail.com>

Examples

1
2
3
4
5
6
7
8
    set.seed(123456)
    x   = rnorm(100, 0, 2)
    x21 = scale21(x)
    matplot(cbind(x, x21), type = 'b', pch = 1:2)
    abline(h = c(0, 1), lty = 3)
    legend('topright',
           legend = c('Original', 'Scaled'),
           fill = 1:2)

Hamedhm/SmoothWin documentation built on May 18, 2019, 10:13 a.m.