readme.md

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:

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:

## For users: 
install.packages('devtools')
library(devtools)
install_github('R2SWF', 'yixuan')


yixuan/R2SWF-archive documentation built on May 4, 2019, 5:28 p.m.