Description Usage Arguments Value Examples
View source: R/plotSummaryStats.R
Plot a donut plot of interaction types for an annotated GInteractions object
1 2 3 4 5 6 7 8 |
GIObject |
A GInteractions object |
node.classes |
Optional. All node.classes to include in the analysis. Default: all node classes. |
viewpoints |
Optional. If set will only consider interactions where at least one anchor is of this node class. Default: all classes in node.classes. |
other |
Optional. Interaction types making up fewer than 'other' percent of the total interactions will be consolidated into a single 'other' category. |
keep.order |
Optional. Logical. Keep original order of node.classes for plotting or not. Default: FALSE, alphabetical order. |
legend |
Optional. Logical. If TRUE, legend is plotted to right of donut plot. If FALSE, donut plot is annotated with category names. |
A ggplot2 plot
1 2 3 4 5 6 | library('GenomicRanges')
data(hic_example_data)
data(mm9_refseq_promoters)
mm9_refseq_grl = split(mm9_refseq_promoters, mm9_refseq_promoters$id)
annotateInteractions(hic_example_data, list(promoter=mm9_refseq_grl))
plotInteractionAnnotations(hic_example_data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.