# DeGroot and Schervish, chapter 1 # ============================ # 1.1 history of probability # Blaise Pascal (1623-1662) # http://www-history.mcs.st-and.ac.uk/Biographies/Pascal.html # http://en.wikipedia.org/wiki/Blaise_Pascal # Pierre de Fermat (1601-1665) # http://www-history.mcs.st-and.ac.uk/Biographies/Fermat.html # http://en.wikipedia.org/wiki/Pierre_de_Fermat # ============================ # 1.4 set theory # sigma algebra of sets # http://en.wikipedia.org/wiki/Sigma-algebra # ============================ # Venn diagrams in R # venn # http://hosho.ees.hokudai.ac.jp/~kubo/Rdoc/library/gplots/html/venn.html # http://www.jstatsoft.org/v11/c01/paper # vennDiagram # http://cran.r-project.org/web/packages/VennDiagram/ # http://cran.r-project.org/web/packages/VennDiagram/VennDiagram.pdf # see Help for venn.diagram, draw.single.venn, draw.pairwise.venn, draw.triple.venn, draw.quad.venn, draw.quintuple.venn # http://www.biomedcentral.com/1471-2105/12/35 # code for examples included in the above paper: # http://www.biomedcentral.com/content/supplementary/1471-2105-12-35-s3.r # first example: library(VennDiagram) # example from the Help page for draw.pairwise.venn venn.plot <- draw.pairwise.venn(100, 70, 30, c("First", "Second")); # example from the Help page for draw.triple.venn venn.plot <- draw.triple.venn( area1 = 65, area2 = 75, area3 = 85, n12 = 35, n23 = 15, n13 = 25, n123 = 5, category = c("First", "Second", "Third"), fill = c("blue", "red", "green"), lty = "blank", cex = 2, cat.cex = 2, cat.col = c("blue", "red", "green") ); # venneuler # http://cran.r-project.org/web/packages/venneuler/index.html # http://stackoverflow.com/questions/8713994/venn-diagram-in-r-proportional-and-color-shading-possible-semi-transparency-sup # ============================