clipview {boxfilter}R Documentation

Get View Of Different clipit Values

Description

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 .-

Usage

clipview (x=NULL,y,clipit=NULL,width=NULL, height=NULL,
miny=min(y,na.rm=TRUE), maxy=max(y,na.rm=TRUE),plotit=FALSE)

Arguments

x

The x-axis of data, a datetime for example. Optional. If x=NULL x<-1:length(y) will be generated.

y

The y-axis of data, probably noisy. Required.

clipit

This function requires a sequence of four items <1, e.g. clipit=seq(0.1, 0.4, by=0.1)

width

Optional. The width of the box. If width is omitted it will be generated from floor(length(x)*0.01).

height

Optional. The height of the box. If height is omitted it will be generated from floor(mean(y,na.rm=T)/4).

miny

The minimum y-value expected. Anything below miny is discarded.

maxy

The minimum y-value expected. Anything above maxy is discarded.

plotit

Optional.If TRUE show a graph of the original and filtered data.

Details

Note that a sequence is required for clipit here, while a scalar is required in boxclip().

Value

There is no return value.Six graphs are generated, original, histogram, and four for each value of clipit.

Author(s)

Thomas Ruf (thomas.p.ruf@me.com)

See Also

boxclip()

Examples


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)


[Package boxfilter version 0.2 Index]