Description Usage Arguments Details Value Author(s) See Also Examples
Using a data frame containing mapping statistics in counts, transform the data in percentages that can be used for stacked barplots.
1 2 |
libs |
A data frame with containing columns required by the |
scope |
The name of a “scope”, that defines which data is plotted
and how it is normalised, or a function that implements a custom scope.
See |
group |
A vector of factors defining groups in the data. By default, the “group” column of the “libs” table. |
facet |
A vector of factors defining facets in the data (in the sense
of |
normalise |
Whether to normalise or not. Default: |
See the plotAnnot vignette and the mapStatsScopes()
help page for details on what the scopes are.
See http://stackoverflow.com/questions/10417003/stacked-barplot-with-errorbars-using-ggplot2 about stacked barplot.
Returns a data frame with mean and standard deviation of normalised
mapping statistics, plus absolute positions for the error bars. The first
column, group
, is a vector of factors sorted with the gtools::mixedorder()
function. The facet column, if any, is always called facet
.
Charles Plessy
plotAnnot, mapStatsScopes
1 2 3 | library(SummarizedExperiment)
CAGEr:::mapStats(as.data.frame(colData(exampleCAGEexp)), "counts", sampleLabels(exampleCAGEexp))
CAGEr:::mapStats(as.data.frame(colData(exampleCAGEexp)), "counts", c("A", "A", "B", "B", "C"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.