text

cedwards

·

animation

·

Plain Text

·

Total Size: 566 B

·

·

Created: 5 months ago

·

Edited: 5 months ago

require(animation) ani.options(ani.width=1200,ani.height=900,interval=0.3) saveVideo({ #par = stuff must happen inside this. for(i in 1:360){ # make plot that uses iteration } }, video.name = "filename.mp4", #this needs to point to wherever ImageMagick is installed: ffmpeg = "C:\\Program Files\\ImageMagick-7.0.7-Q16\\ffmpeg.exe", other.opts="-c:v libx264 -profile:v high -level:v 4.0 -pix_fmt yuv420p -crf 22")

Example code for making an animation. Key point: ImageMagick MUST be installed on the computer to make the animation. 

0 bits

25 views

Are you sure you want to delete?