R/moving_filter_plot_f.R
moving_filter_plot_f.Rd
Plots the filtered results of a moving (weighted) average filter routine.
moving_filter_plot_f( x, xlab = "X", ylab = "Data", filterlab = "Filter & data", plotk = "all" )
x | The result of using the |
---|---|
xlab | The label for the x-axis |
ylab | The label for the y-axis |
filterlab | The label for the legend |
plotk | A string for choosing what to plot (Default is "all") |
ggplot and plotly objects with the filtered data and original data
data(nautilus) k = c(3, 5, 7, 9) filt = moving_avg_filter(nautilus$x, nautilus$y, k) moving_filter_plot_f(filt)#> $GGPLOT#> #> $PLOTLY #>#> $GGPLOT#> #> $PLOTLY #>#> $GGPLOT#> #> $PLOTLY #>