View source: R/functions_feature_plots.R
ssvFeatureUpset | R Documentation |
Uses the UpSetR package to create an UpSetR::upset plot of region overlaps.
ssvFeatureUpset(
object,
return_UpSetR = FALSE,
nsets = NULL,
nintersects = 15,
order.by = "freq",
...
)
object |
will be passed to |
return_UpSetR |
If TRUE, return the UpSetR object, The default is FALSE and results in a ggplotified version compatible with cowplot etc. |
nsets |
Number of sets to look at |
nintersects |
Number of intersections to plot. If set to NA, all intersections will be plotted. |
order.by |
How the intersections in the matrix should be ordered by. Options include frequency (entered as "freq"), degree, or both in any order. |
... |
Additional parameters passed to |
ggplot version of UpSetR plot
data(CTCF_in_10a_overlaps_gr)
ssvFeatureUpset(list(1:3, 2:6))
ssvFeatureUpset(CTCF_in_10a_overlaps_gr)
ssvFeatureUpset(S4Vectors::mcols(CTCF_in_10a_overlaps_gr)[,2:3])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.