Learn R Programming

MUCflights (version 0.0-3)

movie: function to generate a movie of flight data

Description

movie.routes is used for generating a movie of flight data

Usage

"movie"(x, show.progress = TRUE, save = TRUE, width = 1024, height = 768, ...) ffmpeg(dir, ffmpeg = "ffmpeg")

Arguments

x
data frame containing routes data
show.progress
if progress bar should be shown
save
if the generated pictures should be saved
width
width of the generated pictures
height
height of the generated pictures
dir
image directory (returned by movie)
ffmpeg
optionally, path to ffmpeg binary
...
NightDay = TRUE if the light-shadow boundary to be drawn in addition. citynames = TRUE if additional city names to be displayed.

Examples

Run this code
  myflights <- flights(from = "2011-01-07 11:55:00", 
                       to = "2011-01-07 12:05:00")
  myroutes <- routes(myflights)
  movie(myroutes, save = FALSE, NightDay = TRUE)

Run the code above in your browser using DataLab