![]() N123 = 1, category = c("Dog People", "Cat People", "Lizard People"), lty = "blank",įill = c("skyblue", "pink1", "mediumorchid")) ![]() # (polygon, polygon, polygon, polygon, text, text, text, text)Ĭreating a Venn Diagram with three circles grid.newpage()ĭ(area1 = 22, area2 = 20, area3 = 13, n12 = 11, n23 = 4, n13 = 5, # gree - degrees the diagram is rotatedĭ(area1 = 22, area2 = 6, cross.area = 0, category = c("Dog People", # TRUE to have space between non-overlapping circles. How to make two non-overlapping circles # euler.d - TRUE for movable circles FALSE for unmovable circles. How to remove scaling # scaled - TRUE for scaled or FALSE for unscaled cirlcesĠ), cat.dist = rep(0.025, 2), scaled = FALSE) # cat.dist - distance of the category titles from the edge of the circleĭ(22, 20, 11, category = c("Dog People", "Cat People"), lty = rep("blank",Ģ), fill = c("light blue", "pink"), alpha = rep(0.5, 2), cat.pos = c(0, # (polygon, polygon, polygon, polygon, text, text, text, text, text)Īdding colour & moving titles # cat.pos - position of category titles, represented by degree from the grid.newpage()ĭ(area1 = 22, area2 = 20, cross.area = 11, category = c("Dog People", Note that circles are automatically scaled. # (polygon, polygon, text, text)Īdding colour & removing the outline # lty - outline of cirlcesĭ(22, category = "Dog People", lty = "blank", fill = "cornflower blue", The basics (area = 22, category = "Dog People") Nrow(subset(d, Dog = 1 & Cat = 1 & Lizard = 1))Ĭreating a Venn Diagram with a single circle ![]() # 3 group overlap: dogs, cats and lizards ![]() We'll need these totals to plug into the venn diagram function # areas of each animal # install.packages('VennDiagram')Īdd filepath if “catdoge.csv” is not in working-directory. Venn Diagrams on R Studio Venn Diagrams on R Studio First step: Install & load “VennDiagram” package. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |