digitize_graph: Digitize graphs using package digitize

Description Usage Arguments Value Author(s) References

View source: R/digitize_graph.R

Description

Digitzes one or multiple datadata_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<c2><b4>s not necessary to specify the global minimum or maximum values but coordinates that are possible to define precisely.

Usage

1
2
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/ 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/MyR documentation built on May 20, 2019, 8:02 p.m.