When I try to use "saveGIF()" creating a animation, I got an error above mentioned in the title. I have installed Image Magick according to the instruction. My code was pasted below. What shall I do? Would you please help me out? Thanks in advance!
movie.name = "game.gif", # name of your gif
interval = 0.3, # controls the animation speed
ani.width = 800, # size of the gif in pixels
ani.height = 800 ) # size of the git in pixels
`
Hi Professor @Dselby86,
When I try to use "saveGIF()" creating a animation, I got an error above mentioned in the title. I have installed Image Magick according to the instruction. My code was pasted below. What shall I do? Would you please help me out? Thanks in advance!
` dir.create("d:/asu/cpp527/gifs") setwd("d:/asu/cpp527/gifs") library("animation")
cash <- 10
results <- NULL count <- 1
saveGIF({
while( cash > 0 ) { cash <- cash +
sample( c(-1,0,1), size=1 )
results[count] <- cash
plot(1:count, results[1:count], type = "l", xlim = c(1,1000), ylim = c(0, 40)) count <- count + 1
}
},
movie.name = "game.gif", # name of your gif interval = 0.3, # controls the animation speed ani.width = 800, # size of the gif in pixels ani.height = 800 ) # size of the git in pixels `