Add a colour bar that corresponds to the colours in a given colourized mesh to the current rgl device

add_colour_bar(mesh, title = "", lpos = 0.97, rpos = 0.99, bpos = NULL,
  tpos = NULL, bpos2 = NULL, tpos2 = NULL)

Arguments

mesh

A obj_mesh object created with colour_mesh

title

The label to give the colour bar

lpos

the position for the left edge of the colour bar in fraction of the plot area, defaults to .97

rpos

the position for the right edge of the colour bar in fraction of the plot area, defaults to .99

bpos

the position for the bottom edge of the colour bar in fraction of the plot area. In the symmetric case this is for the negative scale. Defaults to .25 for non-symmetric and .05 for symmetric.

tpos

the position for the top edge of the colour bar in fraction of the plot area. In the symmetric case this is for the negative scale. Defaults to .75 for non-symmetric and .45 for symmetric.

bpos2

the position for the bottom edge of the colour bar in fraction of the plot area. Only used in the symmetic case for the positive scale, defaults to .55

tpos2

the position for the top edge of the colour bar in fraction of the plot area. Only used in the symmetric case for the positive scale, defaults to .95