add_scale | R Documentation |
Adding a scale bar to the image
add_scale(
image,
resolution,
downsample,
margins = c(0.1, 0.1),
width = 0.2,
outputFile = NULL
)
image |
a file path as a character or a magick-image |
resolution |
Image resolution as acquired via |
margins |
Percent ratios as distance from the bottom left corner of the image |
width |
Percent ratio of image width to use for scale width |
outputFile |
file path of the output. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.