add_scale: Adding a scale bar to the image

View source: R/utility.R

add_scaleR Documentation

Adding a scale bar to the image

Description

Adding a scale bar to the image

Usage

add_scale(
  image,
  resolution,
  downsample,
  margins = c(0.1, 0.1),
  width = 0.2,
  outputFile = NULL
)

Arguments

image

a file path as a character or a magick-image

resolution

Image resolution as acquired via getSectionImage

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.


oganm/allenBrain documentation built on March 28, 2024, 11:16 p.m.