Learn R Programming

rphast (version 1.6.9)

smooth.wig: Smooth a wig plot in rphast

Description

Smooth a wig plot in rphast

Usage

smooth.wig(coord, score, numpoints = 300)

Arguments

coord

The x coordinates of un-smoothed plot

score

The scores cooresponding to the x coordinates (should be same length as coord)

numpoints

The number of points to use in the new plot

Value

A data frame with numpoints rows and columns "coord" and "score" with smoothed values. If length(coord) <= numpoints, it will contain the original data