Description Usage Arguments Details See Also Examples
Using a data frame containing mapping statistics in counts, plot the data as percentages in stacked barplots.
1 2 |
LIBS |
A table with columns named |
SCOPE |
The value on which to normalise (see the plotAnnot vignette). |
TITLE |
The title of the plot. |
customScope |
A function passed to |
normalise |
Whether to normalise or not. Default: TRUE. |
Stacked barplots with error bars inspired from <http://stackoverflow.com/questions/10417003/stacked-barplot-with-errorbars-using-ggplot2>. See <http://www.biomedcentral.com/1471-2164/14/665/figure/F1> for example.
Other smallCAGEqc annotation functions: hannot
,
hierarchAnnot
, mapStats
,
ranges2annot
, ranges2genes
1 2 3 4 5 6 7 8 9 | example(loadMoiraiStats)
p <- plotAnnot(libs, 'qc', 'Here is the title')
print(p)
p + ggplot2::theme_bw()
ggplot2::theme_set(ggplot2::theme_bw()) ; p
plotAnnot(libs, 'qc', 'Same, non-normalised', normalise = FALSE)
# Test coercion to data frame
if(require("S4Vectors"))
plotAnnot(DataFrame(libs), 'qc', 'Here is the title')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.