Description Usage Arguments Details Value Examples
Create an animated plot function from a plot function. Pass a function which
generates your plots (eg plot, hist) and the maximum number of
plots per second and this function returns a function which will ensure the
function plots no more than plotsPerSecond
times per second.
1 | animatedPlot(plotFun, plotsPerSecond = 5, adapt = T)
|
plotFun |
a plotting function |
plotsPerSecond |
maximum number of plots per second |
adapt |
if |
You then call this function instead of your original function, passing the same parameters you would pass to the original.
a animated plotting function
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.