Description Usage Arguments Details Author(s) Examples
A simple helper function that makes a so-called "MA-plot", i.e. a scatter plot of log2 fold changes (on the y-axis) versus the mean of normalized counts (on the x-axis).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ## S4 method for signature 'DESeqDataSet'
plotMA(
object,
alpha = 0.1,
main = "",
xlab = "mean of normalized counts",
ylim,
colNonSig = "gray60",
colSig = "blue",
colLine = "grey40",
returnData = FALSE,
MLE = FALSE,
...
)
## S4 method for signature 'DESeqResults'
plotMA(
object,
alpha,
main = "",
xlab = "mean of normalized counts",
ylim,
colNonSig = "gray60",
colSig = "blue",
colLine = "grey40",
returnData = FALSE,
MLE = FALSE,
...
)
|
object |
a |
alpha |
the significance level for thresholding adjusted p-values |
main |
optional title for the plot |
xlab |
optional defaults to "mean of normalized counts" |
ylim |
optional y limits |
colNonSig |
color to use for non-significant data points |
colSig |
color to use for significant data points |
colLine |
color to use for the horizontal (y=0) line |
returnData |
logical, whether to return the data.frame used for plotting |
MLE |
if |
... |
further arguments passed to |
This function is essentially two lines of code: building a
data.frame
and passing this to the plotMA
method
for data.frame
from the geneplotter package.
The code was modified in version 1.28 to change from red to blue points
for better visibility for users with color-blindness. The original plots
can still be made via the use of returnData=TRUE
and passing the
resulting data.frame directly to geneplotter::plotMA
.
The code of this function can be seen with:
getMethod("plotMA","DESeqDataSet")
If the object
contains a column svalue
then these
will be used for coloring the points (with a default alpha=0.005
).
Michael Love
1 2 3 4 5 | dds <- makeExampleDESeqDataSet()
dds <- DESeq(dds)
plotMA(dds)
res <- results(dds)
plotMA(res)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.