range_detect: range_detect detects how X and y pixel values map to time and...

View source: R/range_detect.R

range_detectR Documentation

range_detect detects how X and y pixel values map to time and survival values respectively

Description

range_detect detects how X and y pixel values map to time and survival values respectively

Usage

range_detect(
  step1_fig,
  step2_axes,
  x_start,
  x_end,
  x_increment,
  y_start,
  y_increment,
  y_end,
  y_text_vertical
)

Arguments

step1_fig

figure array from previous step

step2_axes

axes list from previous step

x_start

what does the x-axis start usually 0

x_end

what does the x-axis end in

x_increment

what does it go up by (Note: increment between EVERY tick, including minor ones)

y_start

what does the y-axis start

y_increment

what does it go up by (Note: increment between EVERY tick, including minor ones)

y_end

what does it end in

y_text_vertical

whether the y -axis label text is vertical or horizontal)

Value

a list with the Y_0pixel where the y-axis starts, y_increment, X_0pixel and x_increment.

Examples

# range_detect(step1_fig, step2_axes, x_start, x_end, x_increment, y_start, y_increment, y_end, y_text_vertical)


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