Usage
plotMeanVar(object, meanvar=NULL, show.raw.vars=FALSE, show.tagwise.vars=FALSE, show.binned.common.disp.vars=FALSE, show.ave.raw.vars=TRUE, scalar=NULL, NBline=FALSE, nbins=100, log.axes="xy", xlab=NULL, ylab=NULL, ...)
binMeanVar(x, group, nbins=100, common.dispersion=FALSE, object=NULL)
Arguments
object
DGEList
object containing the raw data and dispersion value. According the method desired for computing the dispersion, either estimateCommonDisp
and (possibly) estimateTagwiseDisp
should be run on the DGEList
object before using plotMeanVar
. The argument object
must be supplied in the function binMeanVar
if common dispersion values are to be computed for each bin.
meanvar
list (optional) containing the output from binMeanVar
or the returned value of plotMeanVar
. Providing this object as an argument will save time in computing the gene means and variances when producing a mean-variance plot.
show.raw.vars
logical, whether or not to display the raw (pooled) genewise variances on the mean-variance plot. Default is FALSE
.
show.tagwise.vars
logical, whether or not to display the estimated genewise variances on the mean-variance plot (note that `tag' and `gene' are synonymous). Default is FALSE
.
show.binned.common.disp.vars
logical, whether or not to compute the common dispersion for each bin of genes and show the variances computed from those binned common dispersions and the mean expression level of the respective bin of genes. Default is FALSE
.
show.ave.raw.vars
logical, whether or not to show the average of the raw variances for each bin of genes plotted against the average expression level of the genes in the bin. Averages are taken on the square root scale as regular arithmetic means are likely to be upwardly biased for count data, whereas averaging on the square scale gives a better summary of the mean-variance relationship in the data. The default is TRUE
.
scalar
vector (optional) of scaling values to divide counts by. Would expect to have this the same length as the number of columns in the count matrix (i.e. the number of libraries).
NBline
logical, whether or not to add a line on the graph showing the mean-variance relationship for a NB model with common dispersion.
nbins
scalar giving the number of bins (formed by using the quantiles of the genewise mean expression levels) for which to compute average means and variances for exploring the mean-variance relationship. Default is 100
bins
log.axes
character vector indicating if any of the axes should use a log scale. Default is "xy"
, which makes both y and x axes on the log scale. Other valid options are "x"
(log scale on x-axis only), "y"
(log scale on y-axis only) and ""
(linear scale on x- and y-axis).
xlab
character string giving the label for the x-axis. Standard graphical parameter. If left as the default NULL
, then the x-axis label will be set to "logConc".
ylab
character string giving the label for the y-axis. Standard graphical parameter. If left as the default NULL
, then the x-axis label will be set to "logConc".
...
further arguments passed on to plot
x
matrix of count data, with rows representing genes and columns representing samples
group
factor giving the experimental group or condition to which each sample (i.e. column of x
or element of y) belongs
common.dispersion
logical, whether or not to compute the common dispersion for each bin of genes.