Learn R Programming

x.ent (version 1.1.6)

xvenn:

Description

Here is a graph of type Venn diagram. The Venne that shows all possible logical relations between a finite collection of sets. Graph xvenn provides funtionality that users can compare values of entities or relations appearing simultaneously in bulletins.

Usage

xvenn(v,e=NULL)

Arguments

v
a vector of values, this vector must be greater than 2
e
a vector of entities, e.x: "m", "b"

Value

This function returns a vector so that users can check or use it to create new graphs.
vector
return a vector has format above

Details

Result after calling the function xparse has the following format:
  1. file_name:entity:$:list_value_found
  2. ...
  3. file_name:entity1:entity2:...:$$:value_e1:value_e2:....:negation

Function xvenn will convert the data format above to a vector. The xvenn uses this vector to display graph of type Venn. The vector format:

  1. element1 : number of occurences element1 in bulletins
  2. element2 : number of occurences element2 in bulletins
  3. element3 : number of occurences element3 in bulletins ...
  4. element1&element2 : number of simutaneous occurences element1 and element2 in bulletins
  5. element2&element3 : number of simutaneous occurences element2 and element3 in bulletins
  6. element3&element1 : number of simutaneous occurences element3 and element1 in bulletins
  7. element1&element2&element3 : number of simutaneous occurences element1, element2 and element3 in bulletins ...

See Also

xhist type graphique histogram xplot type graphique plot xprop type graphique propotion

Examples

Run this code
  xvenn(v=c("chou","colza"))
  xvenn(v=c("chou","colza","orge"))
  xvenn(v=c("chou","colza","orge"),e=c("b","m"))

Run the code above in your browser using DataLab