powered by
This function will generate an HTML file to display the Flash animation.
swf2html(swf.file, output, width = 480, height = 480, fragment = FALSE)
The HTML code as a character string.
the path of the SWF file
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)
foo.swf
foo.html
FALSE
width of the Flash
height of the Flash
whether to produce an HTML fragment only
Yihui Xie <https://yihui.org>
olddir = setwd(tempdir()) output = dev2swf({ for (i in 1:10) plot(runif(20), ylim = c(0, 1)) }, output = 'test.swf') swf2html(output) setwd(olddir)
Run the code above in your browser using DataLab