Adds scale bar to image
addScaleBar(
image,
size,
style = c("dash", "line")[1],
color = "white",
res = 96,
xoff = 0,
yoff = 0
)
an image with scale added to the bottom left corner.
a [0,1] image.
positive integer. Scale's bar size in micro-meter. Default is '7'.
This parameter can't be lesser than 6px and higher than image width + scale text.
a character string. Scale's bar style, either 'dash' or 'line'. Default is 'dash'.
a character string. color of the scale. Default is 'white'.
positive integer. Resolution in ppi of 'image'. Default is '96'.
positive integer. x offset in image to draw scale, starting from bottom left corner.
positive integer. y offset in image to draw scale, starting from bottom left corner.