[R] Two gganimate questions.

Roy Mendelssohn - NOAA Federal roy@mende|@@ohn @end|ng |rom no@@@gov
Fri Feb 8 02:51:08 CET 2019


I have two gganimate questions that I have made some headway on but not too much,  and they are actually related.  The questions are:

1.  Suppose I have a list where each element of the list is a pre-defined ggplots2 graphic  (in my case each is a map).  Is there a way to animate this,  and if so,  what is the best way?  I have tried using gganimate::transition_layers()   and while it recognized the lists and produced an animation  (albeit very slowly).

2. is there a way to build up an animation as we go?  it is a long story,  but each map in the list above has to be calculated separated,  it it done using geom_sf.  can an initial animation be defined and then frames added to it as new maps are made?

Thanks for any help.

-Roy



**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: Roy.Mendelssohn using noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



More information about the R-help mailing list