Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darribas/movier
Movies about data
https://github.com/darribas/movier
Last synced: 4 days ago
JSON representation
Movies about data
- Host: GitHub
- URL: https://github.com/darribas/movier
- Owner: darribas
- Created: 2010-11-01T13:10:44.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-11-01T13:12:27.000Z (about 14 years ago)
- Last Synced: 2025-01-19T03:42:13.313Z (7 days ago)
- Language: R
- Homepage: http://darribas.org/index.php?option=com_content&view=article&id=61&Itemid=82&lang=es
- Size: 90.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
#############################
# movieR: movies about data #
#############################This program takes a csv file of data arranged in the following way:
* Rows correspond to observations
* Columns correspond to different years chronologically ordered
* Missing values are represented by empty cellsIt outputs a video in the open format .vob that displays the evolution of the distribution of the data over time. To do it, it draws sequential density kernels for each years and smoothes out the transition.
### Dependencies
To run movieR effectively, you will need:* R
* The R library 'PBSmodelling'
* The free package dvd-slideshow### Usage
In order to use movieR, follow these steps. We will assume you have your data ('data.csv') and the file 'movieR.r' file in the working directory. To change the working directory in R, use the command 'setwd'. We will also assume you want the output to be put into the same current directory.First, source movieR:
> source('movieR.r')Then, just call the function:
> movieR('data.csv', './')
This command will create (it may take some time) a .vob file that you may view, for instance, with VLC, as well as other auxiliary files you can delete if you wish when done.
### Parameters
The function 'movieR' takes the following parameters:* 'csv_path': path to the input data
* 'output_folder': path to the output folder where the movie and auxiliary file will be put
* 'header': switch to indicate if the csv contains a header. Defaults to TRUE
* 'na.rm': switch to remove missing values to compute the density kernels. Defaults to TRUE
* 'cycles': number of intermediate shots to be taken between to periods to smooth the transition. Defaults to 10
* 'lapse': duration in the movie for each shot. Defaults to 0.25 seconds### Example data
-The example data in this folder were taken from the OECD website-Metropolitan Regions, © OECD, 2010
Such data produce a movie that may be seen on this url: