Helper function for plotting - returns zlim for image plot function

zlimmer(x, zlim = NULL, computed_range = NULL)

Arguments

x

Object of class nifti

zlim

A user-specified zlim. If NULL, will calculate how ortho2 would calculate zlim

computed_range

If the range of the data was already computed, this can be passed in and will be used if relevant.

Value

If zlim = NULL, then vector of length 2, otherwise returns zlim