plotCtReps {HTqPCR} | R Documentation

## Scatter plot of features analysed twice during each qPCR experiment.

### Description

In high-throughput qPCR data some features may be present twice on each card (sample). This function will make a scatter plot of one replicate versus the other for each sample individually, as well as mark genes with very deviating replicate values.

### Usage

    plotCtReps(q, card = 1, percent = 20, verbose = TRUE, col = 1, ...)

### Arguments

`q` | object of class qPCRset.
`card` | integer, the sample number to plot.
`percent` | numeric, features with replicate values differ more than this percentage from their average will be marked on the plot.
`verbose` | logical, should the deviating genes and their Ct values be printed to the terminal.
`col` | integer or character; the colour of the points in the scatter plot.
`...` | any other arguments are passed to `plot`.

### Details

This function will look through the data in the qPCRset, find all genes with are presented twice on the array, and plot the Ct values of these replicated genes against each other. Whether a genes goes to the x or y-axis depends on the first occurrence of the gene names.

All genes where abs(rep1-rep2) > percent/100*replicate mean will be marked by an open circle, and the gene names written in red letters.

### Value

An plot is created on the current graphics device. Also, a data.frame with the names and values of deviating genes is returned invisibly.

### Author(s)

Heidi Dvinge

### See Also

`plot`, and `par` for the plotting parameters.

### Examples

    # Load example data
    data(qPCRraw)
    # Plot replicates
    plotCtReps(qPCRraw, card=1, percent=30)
    plotCtReps(qPCRraw, card=2, percent=10)
    reps <- plotCtReps(qPCRraw, card=2, percent=20)
    reps

[Package HTqPCR version 1.36.0 Index]