使用动画包{R}保存GIF
我想用使用动画包{R}保存GIF,r,animation,R,Animation,我想用动画软件包将一组地图保存为gif。通过我创建的函数,我为不同年份制作了这些地图。该函数起作用 但是,我无法将输出保存为gif格式。这是我的代码: i<- 1 saveGIF( for(i in 1955:1957) multiplePlots(i), interval = .65, movie.name = "test.gif", img.name="test", convert = "convert" ) 如果你想知道,我已经安装了ImageMa
动画
软件包将一组地图保存为gif。通过我创建的函数,我为不同年份制作了这些地图。该函数起作用
但是,我无法将输出保存为gif格式。这是我的代码:
i<- 1
saveGIF(
for(i in 1955:1957)
multiplePlots(i),
interval = .65,
movie.name = "test.gif",
img.name="test",
convert = "convert"
)
如果你想知道,我已经安装了ImageMagick
非常感谢
Executing:
""C:\Program Files\ImageMagick-6.9.3-Q16\convert.exe" -loop 0 -delay 65 test1.png test2.png test3.png "test.gif""
convert.exe: unable to load module `C:\Program Files\ImageMagick-6.9.3-Q16\modules\coders\IM_MOD_RL_PNG_.dll': Le module spécifié est introuvable.
@ error/module.c/OpenModule/1300.
convert.exe: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/501.
convert.exe: unable to load module `C:\Program Files\ImageMagick-6.9.3-Q16\modules\coders\IM_MOD_RL_PNG_.dll': Le module spécifié est introuvable.
@ error/module.c/OpenModule/1300.
convert.exe: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/501.
convert.exe: unable to load module `C:\Program Files\ImageMagick-6.9.3-Q16\modules\coders\IM_MOD_RL_PNG_.dll': Le module spécifié est introuvable.
@ error/module.c/OpenModule/1300.
convert.exe: no decode delegate for this image format `PNG' @ error/constitute.c/ReadImage/501.
convert.exe: no images defined `test.gif' @ error/convert.c/ConvertImageCommand/3252.
an error occurred in the conversion... see Notes in ?im.convert
[1] FALSE
Warning messages:
1: running command 'C:\Windows\system32\cmd.exe /c ""C:\Program Files\ImageMagick-6.9.3-Q16\convert.exe" -loop 0 -delay 65 test1.png test2.png test3.png "test.gif""' had status 1
2: In cmd.fun(convert) :
'""C:\Program Files\ImageMagick-6.9.3-Q16\convert.exe" -loop 0 -delay 65 test1.png test2.png test3.png "test.gif""' execution failed with error code 1
3: running command '""C:\Program Files\ImageMagick-6.9.3-Q16\convert.exe" -loop 0 -delay 65 test1.png test2.png test3.png "test.gif""' had status 127
4: In normalizePath(path.expand(path), winslash, mustWork) :
path[1]="test.gif": Le fichier spécifié est introuvable