The Glasgow friendship movie
Chapter 14, Animating change.
The three waves of the Glasgow friendship network, played one after another. Each wave gets its own layout, started from the positions of the wave before, so the girls drift as the network changes.
On a phone or in a narrow window, open the movie page on its own.
. nwwebuse glasgow, nwclear
. nwmovie glasgow1 glasgow2 glasgow3, fname(glasgow_movie) noopen
The movie as a video
export() writes the same movie as a video or an animated GIF, with the format set by the file’s extension
(.mp4, .webm or .gif); duration() sets the milliseconds for each change from one wave to the next.
. nwmovie glasgow1 glasgow2 glasgow3, duration(2000) export(glasgow.mp4) replace
export() needs nwcommands 3.16.0 or later.
Source
Data: an excerpt of the Teenage Friends and Lifestyle Study. See the data sets page.