dfsp-spirit / fsbrain

R library for structural neuroimaging. Provides high-level functions to access (read and write) and visualize surface-based brain morphometry data for individuals and groups.
Other
65 stars 13 forks source link

Support limiting the plotted data range #8

Closed dfsp-spirit closed 4 years ago

dfsp-spirit commented 4 years ago

In vis functions like vis.data.on.subject, there should be an option to limit the plotted data range.

This should of course be reflected in the min and max values displayed on the colorbar (if any).

dfsp-spirit commented 4 years ago

This is implemented in the develop branch. To use it, use rglactions like this:

overlay = rnorm(163842*2L, 5, 3); # your data.
rglactions = list("trans_fun"=limit_fun(4.8,5.2)); # use rglaction to limit plot range
vis.data.on.subject(sjd, sj, morph_data_both =overlay, draw_colorbar = T, rglactions=rglactions);