plot.bg {chipPCR} | R Documentation |
Plot bg
objects
Description
Draws diagnostic plots of amplification reaction.
Usage
## S4 method for signature 'bg'
plot(x, what = 1:3, add = FALSE, indicators = TRUE,
legend = TRUE, stan.labs = TRUE,
plot.colors = c("black", "red", "blue"), ...)
Arguments
x |
is a |
what |
is a vector specifying what should be plotted. |
add |
is a |
indicators |
is a |
legend |
is a |
stan.labs |
is a |
plot.colors |
is a vectors of colors used in plot. Must have length 3. |
... |
Arguments to be passed further to the plot function, such as graphical parameters. |
Details
plot.bg
is simplified, ready-to-use version of
plot.der
, which still can be used whenever more
flexible function is needed.
Author(s)
Stefan Roediger, Michal Burdukiewicz
See Also
Examples
#step-by-step plotting bg object
res <- AmpSim(cyc = 1:40, Cq = 25)
background <- bg.max(res)
plot(background)
#above is equivalent of below
plot(rounder(inder(res)), xlab = "Cycles",
ylab = "Fluorescence",
pch = 20, legend = FALSE)
abline(v = slot(background, "bg.start"))
text(slot(background, "bg.start"), 0.2, "Background start", pos = 4)
abline(v = slot(background, "bg.stop"), col = "blue")
text(slot(background, "bg.stop"), 0.25, "Background stop", pos = 4,
col = "blue")
abline(v = slot(background, "amp.stop"), col = "green")
text(slot(background, "amp.stop"), 0.3, "Plateau transition", pos = 4,
col = "green")
legend(4, 1, c("Raw data", "First derivative", "Second derivative"),
pch = rep(20, 3), col = c(1, 2, 4))