intersphere: Intersphere: a fancy Venn diagram

Description Usage Arguments Author(s) See Also Examples

View source: R/LSD.intersphere.R

Description

Create circles for visualizing overlaps between up to 4 datasets.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
intersphere(
  data,
  colors = NULL,
  alpha = 25,
  cex = 1,
  expand.circles = 1,
  expand.lims = 1.5,
  main = "intersphere: overlap diagram",
  onlySets = seq(length(data), 2, by = -1)
)

Arguments

data

a list with n entries having elements that can be represented as sets (have union and intersect methods).

colors

a character vector of R build-in colors for circles representing different sets.

alpha

alpha value: a two-digit integer between 01 and 99 for color opacity, i.e. appearance of partial or full transparency (usage omitted by default).

cex

a numeric value giving the character expansion factor for intersect size text inside each circle.

expand.circles

a numeric value giving the expansion factor of circles (multiplicative).

expand.lims

a numeric value giving the expansion of x and y limits (additive).

main

title(s) of the plot, standard graphics parameter.

onlySets

vectors, which n-overlaps should be shown, default to all 1 < n < length(data).

Author(s)

Sebastian Duemcke, Bjoern Schwalb

See Also

demotour, disco, colorpalette

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data = list(
	"A" = sample(1:200,100),
	"B" = sample(1:200,150),
	"C" = sample(1:200,50))

intersphere(data,colors = c("orange","skyblue","green"))

data = list(
	"A" = sample(1:200,100),
	"B" = sample(1:200,150),
	"C" = sample(1:200,50),
	"D" = sample(1:200,75))

colors = c("orange","skyblue","green","purple")
intersphere(data,colors,expand.circles = 0.5,expand.lims = 0.5)

Example output



LSD documentation built on July 2, 2020, 4:14 a.m.

Related to intersphere in LSD...