Extract data values from existing graphs in jpeg format.
graph.extract(MT, refX, refY, save = "no", image = read.jpeg(file.choose()))
Measurement times: number of observations
2 reference values for the X scale (e.g., refX=c(2,14)
).
2 reference values for the Y scale (e.g., refY=c(10,16)
).
Save the extracted data points to a file (save="yes"
) or just see them as output in the R console (default: save="no"
).
Jpeg file in which the graph can be found. Default: a window pops up in which the file can be selected.
When using the default image
argument, a window will pop up to ask in what jpeg file the graph can be found.
Then the reference values should be located on the graph by clicking with the left mouse button: first the X values and then the Y values. The marked reference points are indicated with a blue cross.
Then each data point should be located sequentially. The marked data points are indicated with a red circle.
When finished, the calibrated true data points are displayed as output in the R console and plotted in a new graph, as a quick visual check.
When choosing to save these data values to a file (save="yes"
), another window will pop up to ask where to save them. Here one can creat a new txt file in the folder of choice.
Bulte, I., & Onghena, P. (2012). When the truth hits you between the eyes: A software tool for the visual analysis of single-case experimental data. Methodology, 8, 104-114.