powered by
Gives a view of the original data, a histogram of the neighbors, and results of four values of clipit. The cutoff-values clipit are determined by a sequence of length .-
clipview (x=NULL,y,clipit=NULL,width=NULL, height=NULL, miny=min(y,na.rm=TRUE), maxy=max(y,na.rm=TRUE),plotit=FALSE)
There is no return value.Six graphs are generated, original, histogram, and four for each value of clipit.
The x-axis of data, a datetime for example. Optional. If x=NULL x<-1:length(y) will be generated.
The y-axis of data, probably noisy. Required.
This function requires a sequence of four items <1, e.g. clipit=seq(0.1, 0.4, by=0.1)
Optional. The width of the box. If width is omitted it will be generated from floor(length(x)*0.01).
Optional. The height of the box. If height is omitted it will be generated from floor(mean(y,na.rm=T)/4).
The minimum y-value expected. Anything below miny is discarded.
The minimum y-value expected. Anything above maxy is discarded.
Optional.If TRUE show a graph of the original and filtered data.
Thomas Ruf (thomas.p.ruf@me.com)
Note that a sequence is required for clipit here, while a scalar is required in boxclip().
boxclip()
data("wb_year") r=seq(1,54179,by=5) x=wb_year$x[r] y=wb_year$y[r] clipview(x,y,clipit=seq(0.2,0.5,0.1), miny=10)
Run the code above in your browser using DataLab