Description Usage Arguments Author(s)
Here we document some of the R functions, methods and classes that we use to implement the Flash graphics devices. The aim is to inform others who may want to extend the implementation/prototype.
1 2 3 |
pages |
essentially a list with an element for each separate display. Each element is a character vector containing the lines of the ActionScript code. |
file |
a file name or connection to which the generated code will be written |
imports |
names of flash classes or packages that will be 'import'ed at the beginning of the code |
funcName |
the name of the function(s) to create |
plotVariable |
a character string giving the name of the ActionScript variable to use for the user interface component (mx.core.UIComponent). If more than one plot is created, this is used as the prefix and the plot number is appended, e.g. "plot1", "plot2", ... |
preamble |
a character string (or vector) giving ActionScript code that is inserted into the generated ActionScript after the initial imports and before any of the code for the generated plots. This gives the creator an opportunity to add additional code, e.g. add callbacks, etc. |
baseUIType |
a string giving the name of the ActionScript class to use in declaring the type of object on which the plot will be drawn. |
dims |
the dimensions for the canvas on which we draw, in pixel units |
noGlobals |
a logical value that controls whether we declare
global (non-local) variables in the ActionScript code that will
be used as the canvas/component for each of the plots.
If this is |
... |
additional parameters for methods |
Duncan Temple Lang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.