plotCtScatter {HTqPCR} | R Documentation |
Produces a plot of Ct values from two samples plotted against each other. Features can be marked based on for example feature class or type.
plotCtScatter(q, cards = c(1, 2), col = "class", pch = 20, diag = FALSE, cor = TRUE, Ct.max = 35, legend = TRUE, ...)
q |
object of class qPCRset. |
cards |
vector, the two cards to plot against each other. |
col |
vector with the colour(s) to use for the points, or a character string ("type" or "class") indicating whether points should be coloured according to |
pch |
integer, the point type to use for the plot. |
diag |
logical, should the diagonal line y=x be plotted. |
cor |
logical, should information about the correlation between the two samples be included in the plot. The correlation is calculated both with and without removing Ct values above Ct.max. |
Ct.max |
numeric, all Ct values above this will be removed for calculating one of the correlations. |
legend |
logical, if |
... |
any other arguments are passed to |
A figure is generated in the current graphics device.
Heidi Dvinge
# Load example data data(qPCRraw) # Various types of plot plotCtScatter(qPCRraw, cards=c(1,2)) plotCtScatter(qPCRraw, cards=c(1,4), col="type") plotCtScatter(qPCRraw, cards=c(1,4), col="black", cor=FALSE, diag=TRUE)