# NOT RUN {
# Calculate the angles for amplification curve data from the RAS002 data set
data(RAS002)
# Plot the data
plot(RAS002[, 1],
y = RAS002[, 2], xlab = "Cycle", ylab = "RFU",
main = "RAS002 data set", lty = 1, type = "l"
)
res <- winklR(x = RAS002[, 1], y = RAS002[, 2])
res
plot(rbind(res$origin, res$p1, res$p2), col = c("black", "green", "blue"))
plot(RAS002[, 1],
y = RAS002[, 7], xlab = "Cycle", ylab = "RFU",
main = "RAS002 data set", lty = 1, type = "l"
)
res <- winklR(x = RAS002[, 1], y = RAS002[, 7])
res
plot(rbind(res$origin, res$p1, res$p2), col = c("black", "green", "blue"))
res_angles <- unlist(lapply(2:21, function(i) {
winklR(RAS002[, 1], RAS002[, i])$angle
}))
cdplot(RAS002_decisions[1L:20] ~ res_angles, xlab = "angle", ylab = "decision")
# }
Run the code above in your browser using DataLab