runningFunction | R Documentation |
Generic function for running means/medians etc across 2D data
runningFunction(x, y, nbins, fun = mean, logScale = FALSE)
x |
the axis over which bins will be formed |
y |
the dimension on which the function 'fun' is applied |
nbins |
The number of bins to use |
fun |
the function that will be applied to the y values in each bin |
logScale |
whether or not bin-size will be at log scale across x |
width |
the width of the bins |
a matrix with two columns: bin centroid, and value of fun
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.