This is an R package to convert R graphics to Flash file (SWF format). The conversion can be done in two different ways:
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.svg2swf()
to convert from
SVG to SWF, and image2swf()
to convert PNG and JPG images into a single
SWF file.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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.