vennpie: Pie plot shows shared and unique sets

Description Usage Arguments Value Author(s) Examples

Description

Vennpie uses the venn object and to creates a figure in the form of a venn pie diagram rather than a traditional venn diagram. Users can highlight a specific sections of the venn pie.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
vennpie(object, subset = NULL, top = 31, min = 0, color = NULL,
  revcolor = "lightgrey", any = NULL, show.number = TRUE,
  show.x = TRUE, sep = "_", log = FALSE, base = NULL,
  percentage = FALSE)

## S4 method for signature 'Venn'
vennpie(object, subset = NULL, top = 31, min = 0,
  color = NULL, revcolor = "lightgrey", any = NULL,
  show.number = TRUE, show.x = TRUE, sep = "_", log = FALSE,
  base = NULL, percentage = FALSE)

Arguments

object

Venn object

subset

Character vector giving the subset users want to highlight.

top

number of subsets with largest to display (default: 31)

min

The minimum number of input groups that a subset must belong to e.g. min = 2 will only report those subsets with elements shared by 2 or more input groups.

color

Character vector giving the colors of the subsets.

revcolor

Character giving the color for the non-selected subsets.

any

Number to indicate selected subsets, such as 1 means any unique subsets, 2 means any subsets shared by two groups.

show.number

Boolean indicating whether to display the element numbers of the subsets or not (default: TRUE).

show.x

Boolean indicating whether to show subset labels outside the circle (default: TRUE).

sep

Character string used to separate the terms when concatenating group names into new column names (colnames).

log

Boolean indicating whether to transform the data in log scale .

base

Base value for log transformation.

percentage

Boolean indicating whether to display subset percentages (default: FALSE).

Value

vennpie figure

Author(s)

Kai Guo

Examples

1
2
3
4
5
A <- sample(1:100, 40, replace = FALSE)
B <- sample(1:100, 60, replace = FALSE)
C <- sample(1:100, 40, replace = FALSE)
res <- venndetail(list(A = A, B = B, C = C))
vennpie(res)

Example output

Warning messages:
1: `select_()` is deprecated as of dplyr 0.7.0.
Please use `select()` instead.
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated. 
2: `filter_()` is deprecated as of dplyr 0.7.0.
Please use `filter()` instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call `lifecycle::last_warnings()` to see where this warning was generated. 

VennDetail documentation built on Nov. 8, 2020, 8:25 p.m.