r - Creating animation from ggplot graph -
i have problem when use example code of gganimate.
i run code
library(gapminder) library(gganimate) library(ggplot2) library(animation) ani.options(convert = 'c:/program files/imagemagick/convert.exe') ani.options("convert") p5 <- ggplot(gapminder, aes(gdppercap, lifeexp, size = pop, frame = year)) + geom_point() + geom_smooth(aes(group = year), method = "lm", show.legend = false) + facet_wrap(~continent, scales = "free") + scale_x_log10() gganimate(p5) but when come gganimate() command receive error.
i cannot find imagemagick convert = "convert" can find registry hive: c:\program files\imagemagick executing: "c:\program files\imagemagick\convert.exe -loop 0 -delay 100 rplot1.png rplot2.png rplot3.png rplot4.png rplot5.png rplot6.png rplot7.png rplot8.png rplot9.png rplot10.png rplot11.png rplot12.png "file223c1cb51a66.gif"" 'c:\program' not recognized internal or external command, operable program or batch file. error occurred in conversion... see notes in ?im.convert error in file(file, "rb") : cannot open connection in addition: there 19 warnings (use warnings() see them) i have windows8.1 , download imagemagik here
any idea need fix error?
Comments
Post a Comment