Description Usage Value Note Examples
Create rglactions list, suitable to be passed as parameter to vis functions.
1 |
named list, an example 'rlgactions' instance that will save a screenshot of the plot produced by the vis function in the current working directory (see getwd
), under the name 'fsbrain_out.png'.
List of all available rglactions: (1) 'snapshot_png=filepath' takes a screenshot in PNG format and saves it in at 'filepath'. (2) 'trans_fun=function' uses the transformation function trans_fun to the data before mapping data values to colors and plotting. Popular transformation functions are limit_fun
, limit_fun_na
, and clip.data
. (3) 'text=arglist' calls text3d
with the given args after plotting.
1 2 3 4 5 | rgla_screenie = list('snapshot_png'='fsbain_out.png');
rgla_screenie = rglactions(); # same as above
rgla_clamp = list('trans_fun'=clip.data);
rgla_limit = list('trans_fun'=limit_fun(2,5));
rgla_ls = list('trans_fun'=limit_fun_na(2,5), 'snapshot_png'='~/fig1.png');
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.