meanSdPlot | R Documentation |
This function creates a mean-sd plot for a given SummarizedExperiment object.
meanSdPlot(
x,
ranks = TRUE,
xlab = ifelse(ranks, "rank(mean)", "mean"),
ylab = "sd",
pch,
plot = TRUE,
bins = 50,
...
)
x |
A SummarizedExperiment object. |
ranks |
A logical value indicating whether to plot the rank of the mean instead of the mean. |
xlab |
A character string for the x-axis label. |
ylab |
A character string for the y-axis label. |
pch |
A vector of plotting characters. |
plot |
A logical value indicating whether to plot the mean-sd plot. |
bins |
An integer indicating the number of bins in the plot. |
... |
Other arguments to be passed to the underlying plotting function. |
See meanSdPlot
for further details
If plot is TRUE, a mean-sd plot is returned. In any case returns a named list with five 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 line in the plot). Its element gg is the plot object (see examples). Depending on the value of plot, the method can (and by default does) have a side effect, which is to print gg on the active graphics device.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.