Learn R Programming

qpcR (version 1.2-0)

pcrplot: Plotting qPCR data with fitted curves/confidence bands

Description

A plotting function for data of class 'pcrfit' (single curves) or 'modlist' (batch curves) displaying the data points, the fitted curve and (if desired) confidence/prediction bands.

Usage

pcrplot(object, fitted = TRUE, confband = c("none", "confidence", "prediction"),
        add = FALSE, colvec = NULL, ...)

Arguments

object
an object of class 'pcrfit' or 'modlist'.
fitted
should the fitted line be displayed?
confband
should confidence/prediction bands be displayed? See confint.
add
should the curve be added to an existing plot?
colvec
an optional color vector for the individual curves.
...
other parameters to be passed to plot, lines or pcrpred.

Value

  • A qPCR plot.

Examples

Run this code
## single plot
m1 <- pcrfit(reps, 1, 2, l5)
pcrplot(m1)

## add another plot in blue
## with 99\% prediction interval
m2 <- pcrfit(reps, 1, 12, l5)
pcrplot(m2, add = TRUE, col = 4, confband = "confidence", level = 0.99)

## plot a 'modlist' batch with coloring of replicates
ml <- modlist(reps, 1, 2:13, model = l4)
pcrplot(ml, colvec = gl(3,4))

Run the code above in your browser using DataLab