limit_fun_na_inside | R Documentation |
Get data limiting function to use in rglactions
as 'trans_fun' to transform data.
limit_fun_na_inside(vmin, vmax)
vmin |
numerical scalar, the lower border. Data values between this and vmax will be set to 'NA' in the return value. |
vmax |
numerical scalar, the upper border. See 'vmin'. |
a function that takes as argument the data, and clips it to the requested range. I.e., values inside the range will be set to 'NA'. Designed to be used as rglactions$trans_fun
in vis functions.
This is useful for thresholding data plotted with a background. All values inside the range will set to NA and be transparent, and thus be displayed as the background color.
limit_fun_na
which will set the values outside the range to 'NA'.
rglactions = list("trans_fun"=limit_fun_na_inside(2,3));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.