Closed espinielli closed 6 years ago
I had a similar issue (trying to generate plots minute by minute over 24 hours) and it kept failing with similar error messages received the command line being too long.
My solution was to break each plot into 15 minute timebands and plot cumulatively from time 0 to the end of each 15 minute segment.
That way I only had to generate 96 plots, rather than 1440.
Not sure if this will suit you but just putting it out there for anyone else who may come across this
We are finishing a complete rewrite of gganimate undertaken by Thomas Pedersen, with massive breaking changes to the API (this will come with a version bump to 1.0.0; currently 0.9.9.9999). This fixes many existing bugs and installation difficulties, and offers a more intuitive grammar of graphics.
As a result I'm closing almost all open issues, since they aren't relevant to the new version (bug reports in particular no longer apply). I apologize for any inconvenience in updating your existing code, but the new version of gganimate will be well worth the effort.
If you'd like to continue using the old gganimate version (which we do not recommend, as it will not be maintained), you can install from this release using the following code:
devtools::install_github("dgrtwo/gganimate", ref = "v0.1.1”)
I tried to gganimate a full day of flights over Europe. I did plot a density 2d of position report for every minute in a day. So I have 1440
Rplot<x>.png
images forconvert
to put together in an animated gif.Here is the code:
But I get the following error:
I have been able to generate the animated
GIF
manually from the temporarily createPNG
's with a workaround I found here, i.e. ImageMagick can avoid the "Argument too long" issue with the underlying shell by using its own filename globbing method, hence the"*.png"
(note the quotes"
)but to properly get the right sequence of
PNG
's I had to overcome one shortcoming of the package (or the dependent ones):Rplot<index>.png
, whereindex
= 1..n. In my casen = 1440
, so I haveRplot1.png
,Rplot2.png
...Rplot1440.png
This does not work well when you have to list them in order like with"*.png"
My (manual) solution was to zero pad the relevant files in order to have
Rplot0001.png
,Rplot0002.png
...Rplot1440.png
.In summary the issue I faced could require the following 2 changes:
convert
program