rglactions: Create rglactions list, suitable to be passed as parameter to...

Description Usage Value Note Examples

View source: R/rglactions.R

Description

Create rglactions list, suitable to be passed as parameter to vis functions.

Usage

1

Value

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'.

Note

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.

Examples

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');

neuroconductor/fsbrain documentation built on Sept. 16, 2020, 2:30 p.m.