Learn R Programming

ffpe (version 1.16.0)

sortedIqrPlot: Minimal box plot of samples, which get ordered optionally by batch, then by IQR.

Description

This plots only the 25th to 75th percentile of expression intensities (Interquartile Range), sorted from smallest to largest IQR. This modification is more readable than a regular boxplot for large sample sizes. An optional batch variable may be specified, so that the sorting is done within each batch.

Usage

sortedIqrPlot(data.obj, batchvar = rep(1, ncol(data.obj)), dolog2=FALSE, ...) "sortedIqrPlot"(data.obj, batchvar = rep(1, ncol(data.obj)), dolog2=FALSE, ...) "sortedIqrPlot"(data.obj, batchvar = rep(1, ncol(data.obj)), dolog2=FALSE, ...) "sortedIqrPlot"(data.obj, batchvar = rep(1, ncol(data.obj)), dolog2=FALSE, ...)

Arguments

data.obj
An object of class LumiBatch, AffyBatch, AffyBatch, or matrix. This should contain raw, unnormalized, expression intensities.
batchvar
Optional integer batch variable. If specified, samples will be sorted within batches only. Default is to assume a single batch for all data.
dolog2
If TRUE, data will be log2-transformed before plotting. Default is FALSE.
...
Optional arguments passed on to the plot() function.

Value

If the output is redirected, e.g.:output <- sortedIqrPlot()the function will return the IQR of each sample.

Details

Function will be generally called for the side-effect of producing a plot of sorted IQRs, but if the output is redirected it also produces the IQRs.

References

Under review.

See Also

sampleQC

Examples

Run this code

library(ffpeExampleData)
data(lumibatch.GSE17565)
sortedIqrPlot(lumibatch.GSE17565,main="GSE17565")

Run the code above in your browser using DataLab