Plot smoothed curve

Share:

Description

The function plots a smoothed curve using the convolve function.

Usage

1
conv_smoother(X, Y, window, xlab = "", ylab = "", raw = FALSE)

Arguments

X

numeric array

Y

numeric array

window

numeric value indicating size of window to use

xlab

string of x-axis label

ylab

string of y-axis label

raw

boolean

Value

smoothed X,Y and std Y matrix

Examples

1
2
3
x <- 1:1000
y <- rnorm(1000)
conv <- conv_smoother(x,y,10)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.