addScaleBar | R Documentation |
Adds scale bar to image
addScaleBar(
image,
size = 7,
style = c("dash", "line")[1],
color = "white",
pix = c(0.3, 0.5, 1)[1],
xoff = 0,
yoff = 0
)
image |
a [0,1] image. |
size |
positive integer. Scale's bar size in micro-meter. Default is |
style |
a character string. Scale's bar style, either |
color |
a character string. Color of the scale. Default is |
pix |
positive numeric. Size of one pixel in micro-meter. Default is |
xoff |
positive integer. x offset in image to draw scale, starting from bottom left corner. Default is |
yoff |
positive integer. y offset in image to draw scale, starting from bottom left corner. Default is |
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.