plotMeanSd {flowVS} | R Documentation |
Plot row standard deviations versus row means of a data matrix.
plotMeanSd(x, ranks = TRUE, xlab = ifelse(ranks, "Rank of means (ascending order)", "mean"), ylab = "Standard deviation", pch = ".", plot = TRUE, ...)
x |
An object of class
|
ranks |
Logical, indicating whether the x-axis (means) should be plotted
on the original scale ( |
xlab |
Character, label for the x-axis. |
ylab |
Character, label for the y-axis. |
pch |
Plot symbol. |
plot |
Logical. If |
... |
Further arguments that get passed to plot.default. |
Standard deviation and mean are calculated row-wise from the
expression matrix (in) x
. The scatterplot of these versus each other
allows to visually verify whether there is a dependence of the standard
deviation (or variance) on the mean.
The red dots depict the running median estimator (window-width 10%).
If there is no variance-mean dependence, then the line formed by the
red dots should be approximately horizontal.
A named list with four components: its elements px
and
py
are the x- and y-coordinates of the individual data points
in the plot; its first and second element are the x-coordinates and values of
the running median estimator (the red dots in the plot).
Depending on the value of plot
, the method can also have a side effect, which is to create a plot on the
active graphics device.
library(vsn) data(kidney) kidney.t = microVS(exprs(kidney)) plotMeanSd(kidney.t)