Description Usage Arguments Examples
This function accepts four variables from a contingency table mat = [a, b; c, d], and returns an Euler diagram. For non-redundant set1 and set2 and all, the definition of this table is as follows: a = length(intersect(set1,set2)) b = length(setdiff(set1,set2)) c = length(setdiff(set2,set1)) d = length(setdiff(all,union(set1,set2))
1 2 3 4 5 6 7 8 9 10 |
mat |
Contingency table as defined above. |
name1 |
Label describing set1 contained by a+b |
name2 |
Label describing set2 contained by a+c |
nametot |
Label describing all data contained by a+b+c+d |
theta |
Rotation (in degrees) of the two circles. Defaults to -30. |
col |
Vector of length 3 describing the three sets: set1, set2, all. |
method |
Method of calculating odds ratio OR and P value. Default value of "fisher" performs two-sided fisher test and the MLE of the odds ratio. All other values returns one-tailed hypergeometric test and the empirical odds ratio. |
legend.position |
Position of the legend ("none", "left", "right", "bottom", "top", or two-element numeric vector) |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.