Make a scalebar to accompany an image.im3d plot
imscalebar(
levels,
col,
nlevels = NULL,
zlim = NULL,
horizontal = TRUE,
lab = "Density",
mar = c(4, 2, 2, 2) + 0.1,
border = NULL,
...
)
The levels at which z values were cut or a list
returned by image.im3d
The plotted colours for each level
The number of colour levels (inferred from levels when
NULL
)
The limits of the plotted z (intensity) values of the image
Whether to make a horizontal or vertical scalebar (default: TRUE)
The (single) axis label for the scale bar (default:
Density
)
The margins for this plot
Color for rectangle border (see rect
's
border
argument for details).
Additional arguments for plot