Generates the components of a colorbar for an individual voxelcoordinate and overlay

colorbar(
  lut,
  min,
  max = -min,
  nticks = 11,
  ticks = seq(min, max, len = nticks),
  title = ""
)

Arguments

lut

previously generated lut file

min

minimum value for the colorbar

max

maximum value for the colorbar (default is the negative of the minimum)

nticks

number of desired tick marks

ticks

vector of ticks

title

title of the colorbar