Learn R Programming

asbio (version 0.2-1)

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.

Usage

Venn(A, B, AandB = 0, labA = "A", labB = "B")

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

Value

  • A Venn diagram is returned.

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