axes_identify: axes_identify Identifies plot axes location

View source: R/axes_identify.R

axes_identifyR Documentation

axes_identify Identifies plot axes location

Description

axes_identify Identifies plot axes location

Usage

axes_identify(fig.hsl, bg_lightness = 0.1)

Arguments

fig.hsl

array of pixels in HSL format (hue/saturation/lightness)

bg_lightness

a lightness threshold value between 0 and 1; every pixel with lightness > bg_lightness is considered background and removed (default: 0.1).

Value

a list w/ 2 objects, fig.hsl: the array of pixels cropped to the axes, axes: a list of xaxis, yaxis: vectors of integers to index plot by columns and rows respectively.

Examples

# axes_identify(fig.hsl = figure, bg_lightness = 0.1)


Pechli-Lab/SurvdigitizeR documentation built on July 17, 2024, 8:01 a.m.