swf2html: Embed the SWF file into an HTML page

Description Usage Arguments Value Author(s) Examples

View source: R/swf2html.R

Description

This function will generate an HTML file to display the Flash animation.

Usage

1
2
  swf2html(swf.file, output, width = 480, height = 480,
    fragment = FALSE)

Arguments

swf.file

the path of the SWF file

output

the output path of the HTML file; by default ‘foo.swf’ produces foo.html if not specified (set FALSE so that no file will be written)

width

width of the Flash

height

height of the Flash

fragment

whether to produce an HTML fragment only

Value

The HTML code as a character string.

Author(s)

Yihui Xie <http://yihui.name>

Examples

1
2
3
4
output = dev2swf({
  for (i in 1:10) plot(runif(20), ylim = c(0, 1))
}, output = 'test.swf')
swf2html(output)

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