Description Usage Arguments Value Examples
View source: R/functions_feature_plots.R
ggplot implementation of vennDiagram from limma package. currently limited at 3 sets
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
object |
will be passed to |
group_names |
useful if names weren't provided or were lost in creating membership matrix |
counts_txt_size |
font size for count numbers |
counts_as_labels |
if TRUE, geom_label is used instead of geom_text. can be easier to read. |
show_outside_count |
if TRUE, items outside of all sets are counted outside. can be confusing. |
line_width |
uses size aesthetic to control line width of circles. |
circle_colors |
colors to use for circle line colors. Uses Dark2 set from RColorBrewer by default. |
fill_alpha |
alpha value to use for fill, defaults to .3. |
line_alpha |
numeric [0,1], alpha value for circle line |
counts_color |
character. single color to use for displaying counts |
n_points |
integer. number of points to approximate circle with. default is 200. |
return_data |
logical. If TRUE, return value is no longer ggplot and is instead the data used to generate that plot. Default is FALSE. |
ggplot venn diagram
1 2 3 | ssvFeatureVenn(list(1:3, 2:6))
ssvFeatureVenn(CTCF_in_10a_overlaps_gr)
ssvFeatureVenn(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.