https://github.com/yixuan/r2swf-archive
Convert R Graphics to SWF (Flash)
https://github.com/yixuan/r2swf-archive
Last synced: about 2 months ago
JSON representation
Convert R Graphics to SWF (Flash)
- Host: GitHub
- URL: https://github.com/yixuan/r2swf-archive
- Owner: yixuan
- Created: 2010-12-03T15:22:10.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-09-13T00:51:59.000Z (over 11 years ago)
- Last Synced: 2025-02-28T20:11:32.043Z (2 months ago)
- Language: C
- Homepage: http://cran.r-project.org/package=R2SWF
- Size: 3.97 MB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### Description
This is an R package to convert R graphics to Flash file (SWF format).
The conversion can be done in two different ways:1. This package contains a SWF device in R, so you can create SWF file
directly using plotting functions like `plot()` and `lines()`.
The convention is that every time you call a high-level plotting function,
e.g. `plot()`, the movie will create a new frame and draw the following
shapes in this frame. In this way, you can create some animation by
calling a series of `plot()` functions.
2. This package also includes several functions to convert graphics of
other formats into SWF format. For example, `svg2swf()` to convert from
SVG to SWF, and `image2swf()` to convert PNG and JPG images into a single
SWF file.### Install
**R2SWF** depends on the following libraries:- zlib [http://www.zlib.net/](http://www.zlib.net/)
- libpng [http://www.libpng.org/](http://www.libpng.org/)
- freetype [http://www.freetype.org/](http://www.freetype.org/)
- libming [http://www.libming.org/](http://www.libming.org/)However, the source code of the dependent libraries (with minor modifications) are included in the package, so you don't need to install them by yourself.
To install the package here:
```r
## For users:
install.packages('devtools')
library(devtools)
install_github('R2SWF', 'yixuan')
```