View source: R/moving_filter_plot_r.R
moving_filter_plot_r | R Documentation |
Plots the residual results of a moving (weighted) average filter routine.
moving_filter_plot_r( x, xlab = "X", ylab = "Residual data", filterlab = "Filter", 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 residual data
data(nautilus) k = c(3, 5, 7, 9) filt = moving_avg_filter(nautilus$x, nautilus$y, k) moving_filter_plot_r(filt) moving_filter_plot_r(filt, plotk = c("k_3", "k_9")) # plots residuals for filters of window 3 and 9
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.