AUC: area under the curve 'AUC' Returns area under the curve

View source: R/auc.R

AUCR Documentation

area under the curve AUC Returns area under the curve

Description

area under the curve AUC Returns area under the curve

Usage

AUC(time, volume, time.normalize = TRUE, vol.normal = TRUE)

Arguments

time

A vector of time points recorded for the experiment.

volume

First vector of volume.

time.normalize

If TRUE, AUC value will be divided by max time

Value

Returns angle and slope object.

Examples

time  <- c(0, 3, 7, 11, 18, 22, 26, 30, 32, 35)
volume1<- time * tan(30*pi/180)
volume2<- time * tan(45*pi/180)
auc1 <- AUC(time, volume1)
auc2 <- AUC(time, volume2)
par(pty="s")
xylimit <- range(c(time, volume1, volume2))
plot(time, volume1, type = "b", xlim = xylimit, ylim = xylimit, col="red")
abline(lm(volume1~time), col="red")
lines(time, volume2, type = "b", col="green")
abline(lm(volume2~time), col="green")

bhklab/Xeva documentation built on Nov. 12, 2022, 5:38 a.m.