intersphere {LSD} | R Documentation |
Intersphere: a fancy Venn diagram
Description
Create circles for visualizing overlaps between up to 4 datasets.
Usage
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
Examples
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)