ssvFeatureVenn: ggplot implementation of vennDiagram from limma package....

Description Usage Arguments Value Examples

View source: R/functions_feature_plots.R

Description

ggplot implementation of vennDiagram from limma package. currently limited at 3 sets

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
ssvFeatureVenn(
  object,
  group_names = NULL,
  counts_txt_size = 5,
  counts_as_labels = FALSE,
  show_outside_count = FALSE,
  line_width = 3,
  circle_colors = NULL,
  fill_alpha = 0.3,
  line_alpha = 1,
  counts_color = NULL,
  n_points = 200,
  return_data = FALSE
)

Arguments

object

will be passed to ssvMakeMembTable for conversion to membership matrix

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.

Value

ggplot venn diagram

Examples

1
2
3

seqsetvis documentation built on Nov. 8, 2020, 5:57 p.m.