Calculates coordinates of points on plot to represent a digital PCR array.

calc_coordinates(array, half)

Arguments

array
A single array, as generated by adpcr2panel.
half
If left or right, every well is represented only by the adequate half of the rectangle.

Value

Returns two sets of coordinates of each microfluidic well: coords is a list of coordinates suitable for usage with functions from graphics package. The second element is a data frame of coordinates useful for users utilizing ggplot2 package.

See also

plot_panel - plots adpcr data. adpcr2panel - converts adpcr object to arrays.