text

cedwards
·
animation
·
Plain Text
·
Total Size: 566 B
·
·
Created: 4 years ago
·
Edited: 4 years 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.
1 bit
•
1069 views
Are you sure you want to delete?
embluk
14-04-2020 19:21:39
Thank you for sharing! :)