digitize_graph: Digitize graphs using package digitize

Description Usage Arguments Value Author(s) References

View source: R/digitize_graph.R

Description

Digitizes one or multiple data sets within a single figure. One or both axes might be logarithmic. The user needs to define to values on both axes for calibration purposes. It´s not necessary to specify the global minimum or maximum values but coordinates that are possible to define precisely.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
digitize_graph(
  fname,
  x_min,
  x_max,
  y_min,
  y_max,
  data_sets = 1,
  labels = 1:data_sets,
  log = c("", "x", "y", "xy"),
  plot = TRUE
)

Arguments

fname

Filename or path of the graphic to read

x_min

Minimum value on the horizontal axis

x_max

Maximum value on the horizontal axis

y_min

Minimum value on the vertical axis

y_max

Maximum value on the vertical axis

data_sets

defines how many data_sets will be extracted from the graph

labels

character vector containing labels for data_sets

log

defines logarithmic scales. By default scaling is assumed to be linear

plot

If TRUE, the extracted data is plotted

Value

a data frame

Author(s)

Meinolf Ottensmann

References

This functions is adopted from a blog post by Bart Rogiers: http://rogiersbart.blogspot.de/2012/06/digitize-linear-and-semi-log-scale.html


mottensmann/DBChecks documentation built on Feb. 3, 2022, 9:21 p.m.