addScaleBar | R Documentation |
Adds scale bar to image
addScaleBar(
image,
size,
style = c("dash", "line")[1],
color = "white",
res = 96,
xoff = 0,
yoff = 0
)
image |
a [0,1] image. |
size |
positive integer. Scale's bar size in micro-meter. Default is '7'. |
style |
a character string. Scale's bar style, either 'dash' or 'line'. Default is 'dash'. |
color |
a character string. color of the scale. Default is 'white'. |
res |
positive integer. Resolution in ppi of 'image'. Default is '96'. |
xoff |
positive integer. x offset in image to draw scale, starting from bottom left corner. |
yoff |
positive integer. y offset in image to draw scale, starting from bottom left corner. |
an image with scale added to the bottom left corner.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.