Learn R Programming

ggVennDiagram (version 1.4.9)

Venn-class: Venn is a S4 class to represent multiple sets.

Description

Print user-friendly information of a Venn object

Usage

Venn(sets, names = NULL)

# S4 method for ANY Venn(sets, names = NULL)

# S4 method for Venn show(object)

Value

A Venn object.

Arguments

sets

(Required) A list containing vectors in the same class. If a vector contains duplicates they will be discarded. If the list doesn't have names the sets will be named as "Set_1", "Set_2", "Set_3" and so on.

names

names of sets

object

a Venn class object

Slots

sets

A list object containing vectors in the same type.

names

The names of the sets if it has names. If the list doesn't have names, the sets will be named as "Set_1", "Set_2", "Set_3" and so on.

Examples

Run this code
 venn = Venn(list(letters[1:10], letters[3:12], letters[6:15]))
 print(venn)

Run the code above in your browser using DataLab