tracePlotOnImage: tracePlotOnImage

View source: R/tracePlotOnImage.R

tracePlotOnImageR Documentation

tracePlotOnImage

Description

Written for use in Muchammad Nafiek MSc project, tracePlotOnImage allows you to trace information in a image file.

tracePlotOnImage allows the user to trace information on an image, e.g. a picture file containing a bar graph or plot, using the mouse left button. The procedure has three steps: (1) The user is asked to select the the bottom corner of the plot and enter its coordinates; (2) The user is asked to select the top corner of the plot and enter its coordinates; and (3) The user is asked to identify points of interest on the plot. The user can select n points or stop the point collection process early by pressing the mouse right button and selecting exit. The data points, calibrated using information from steps (1) and (2), are then returned.

Usage

tracePlotOnImage(n = 1000)

Arguments

n

(integer) the maximum number of data points to collect when tracing information on a plotted image. The option n = -1 allows open ended data collection.

Author(s)

Karl Ropkins (with contributions from Muchammad Nafiek)


karlropkins/grey.area documentation built on Dec. 27, 2024, 7:10 p.m.