get_auc: Determine Area Under the Curve

Description Usage Arguments Details Value Author(s) References Examples

Description

Determine the area under the curve given a numeric matrix containing position values (x-axis) and signal intensities (y-axis).

Usage

1
get_auc(signal_matrix)

Arguments

signal_matrix

is a numeric matrix containing two columns.

Details

The numeric matrix passed as argument must contain only two columns. The first column defines the position on the x-axis. The second column provides the signal intensity values (y-axis). The base is set at 0.

Value

Returns a numeric value corresponding to the area under the curve

Author(s)

Damiano Fantini

References

http://www.biotechworld.it/bioinf/2016/03/09/analyzing-fluoresence-microscopy-data-with-r/

Examples

1
2
3
4
my_mat <- matrix(c(0,0.25,2,2.9,3,0,3,7,5,0), ncol = 2)
plot(my_mat, ylim = c(0,10), type = "n")
lines(my_mat, lwd = 3)
get_auc(my_mat)

dami82/CellSignalingTools documentation built on May 14, 2019, 3:32 p.m.