Learn R Programming

asbio (version 1.9-2)

Venn: Venn probability diagrams for an event with two outcomes

Description

The user specifies the probabilities of two outcomes, and if applicable, their intersection. A Venn diagram is returned. The universe, S, will generally not have unit area, but in many applications will be a good approximation. The area of the intersection will also be an approximation.

Usage

Venn(A, B, AandB = 0, labA = "A", labB = "B", cex.text = .95, ...)

Venn.tck()

Value

A Venn diagram is returned.

Arguments

A

Probability of event A

B

Probability of event B

AandB

Probability of the intersection of A and B

labA

Label assigned to event A in the diagram

labB

Label assigned to event B in the diagram

cex.text

Character expansion for text.

...

Additional arguments from plot

Author

K. Aho

References

Bain, L. J., and M. Engelhardt (1992) Introduction to Probability and Mathematical Statistics. Duxbury press. Belmont, CA, USA.

Examples

Run this code
Venn(A=.3,B=.2,AandB=.06)

Run the code above in your browser using DataLab