Some export formats ignore information in the times
attribute and plot frames at constant speed. anim.smooth creates
a smoothed version of the anim.frames object with frames at
constant intervals, suitable for export.
Usage
anim.smooth(x, fps = 10)
Value
A smoothed anim.frames object, with the speed attribute equal
to fps.
Arguments
x
an anim.frames object
fps
how many frames per second to smooth to
Details
Note that plot parameters such as x and y positions are not interpolated.
If you want your whole animation to look smoother, you have to do
the work yourself using e.g.approx.
If you smooth to a large value of fps, the animations may look bad
in R because they overtax the graphics engine. They should still look good
when saved, though.