scale.ts | R Documentation |
Linearly rescale y values to map range[1] to 0 and range[2] to 1. Values outside this range will be <0 and >1 respectively.
## S3 method for class 'ts'
scale(x, center = min(x), scale = diff(range(x)))
x |
A |
center |
Value to map to 0 (defaults to the minimum value of yrange) |
scale |
Defaults to |
return value Single time series (ts)
ts
w<-read.pxp(system.file("igor","WedJul407c2_001.pxp",package="IgorR"))
wts<-WaveToTimeSeries(w[c('RecordA0',"RecordA1")])
ws<-scale(wts,center=-200,scale=400)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.