R/panel.Ct.cor.R

Defines functions panel.Ct.cor

panel.Ct.cor <-
function(x, y, text.cex=text.cex, Ct.max=Ct.max, ...)
{
	usr <- par("usr"); on.exit(par(usr))
	par(usr = c(0, 1, 0, 1))
	index <- apply(cbind(x,y), 1, function(z) any(z>Ct.max))
	r <- abs(cor(x[!index], y[!index], use="na.or.complete"))
	txt <- format(c(r, 0.123456789), digits=2)[1]
	text(0.5, 0.5, txt, cex=text.cex, ...)
}

Try the HTqPCR package in your browser

Any scripts or data that you put into this service are public.

HTqPCR documentation built on Nov. 8, 2020, 6:51 p.m.