Learn R Programming

EGAD (version 1.0.3)

conv_smoother: Plot smoothed curve

Description

The function plots a smoothed curve using the convolve function.

Usage

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

Run this code
x <- 1:1000
y <- rnorm(1000)
conv <- conv_smoother(x,y,10)

Run the code above in your browser using DataLab