Learn R Programming

metagear (version 0.1)

figure_extractDetectedPoints: Extracts data points from a detected image.

Description

Extracts raw X and Y data from the points detected in a scatter-plot figure.

Usage

figure_extractDetectedPoints(aDetectedPlot, xAxis = NULL, yAxis = NULL,
  X_min = NULL, X_max = NULL, Y_min = NULL, Y_max = NULL,
  summarize = TRUE)

Arguments

aDetectedPlot
A binary figure image with detected points (an EBImage object). See: figure_detectAllPoints
xAxis
A binary figure image with detected X-axis (an EBImage object). See: figure_detectAxis.
yAxis
A binary figure image with detected Y-axis (an EBImage object). See: figure_detectAxis.
X_min
The minimum value of X reported on the figure X-axis.
X_max
The maximum value of X reported on the figure X-axis.
Y_min
The minimum value of Y reported on the figure Y-axis.
Y_max
The maximum value of Y reported on the figure Y-axis.
summarize
When TRUE returns a summary of the regression parameters (intercept + slope * X), R-squared, Pearson's product moment correlation coefficient (r), and its variance (var_r) and sample size (N).

Value

  • A data frame with the extracted X and Y values.