Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating Proportional Venn Diagrams Using Google and SAS ® Hillary Kruger, RTI International, USA.

Similar presentations


Presentation on theme: "Creating Proportional Venn Diagrams Using Google and SAS ® Hillary Kruger, RTI International, USA."— Presentation transcript:

1 Creating Proportional Venn Diagrams Using Google and SAS ® Hillary Kruger, RTI International, USA

2 (1) What are Venn diagrams? (2) Why use them? (3) What are good and bad examples? (4) How are they made in SAS ® with Google? (5) Resources and References Proportional Venn Diagrams

3 What is a Venn Diagram?

4 Why Choose a Venn Diagram? + Venn diagrams are an effective and efficient way to show overlapping data + Easy to understand for a variety of audiences + Universally useful across disciplines + Recent resurgence in popularity

5 Venn Diagrams Some Venn diagrams are not mathematically accurate, but are still useful - or at least entertaining

6 Venn Diagrams To accurately reflect data sets, one must create diagrams that show the true overlap in data

7 Venn Diagrams in SAS ® SAS ® offers Venn options (like below) but they are not proportional

8 Proportional Venn Diagrams in SAS ® Others have addressed this previously, using tedious code, and produced the following results:

9 Proportional Venn Diagrams RECAP: current options BETTER: Not visually interesting FAIR: Interesting; not mathematical GOOD: Not visually accurate

10 BEST: Visually interesting and mathematically accurate; simple implementation Proportional Venn Diagrams New Option: Google and SAS ®

11 Pros and Cons SAS ® Only PROS: Mathematically accurate CONS: Visually uninteresting; tedious code SAS ® and Google Pros: Mathematically accurate; plethora of visualization options; simple application Cons: ??

12 A Simple Venn Diagram Using Google Here are the basic components for Google chart calls: cht= & chd= & chs= &...additional_parameters... cht = v & chd= t : 50,60,0,20,0,0,0 & chs= 300x225 & chco= FF6342,ADDE63 &

13 Venn Diagrams Using Google and SAS ® cht= & chd= & chs= &...additional_parameters... %let type = v; ** CHART TYPE v=venn; %let col1 = FF6342;** A COLOR; %let col2 = ADDE63;** B COLOR; %let col3 = 63C6DE;** C COLOR; %let dat1 = 35; ** SIZE OF A; %let dat2 = 30; ** SIZE OF B; %let dat3 = 15; ** SIZE OF C; %let dat4 = 8; ** A+B OVERLAP; %let dat5 = 5; ** A+C OVERLAP; %let dat6 = 3; ** B+C OVERLAP; %let dat7 = 4; ** A+B+C OVERLAP; %let lab1 = Circle+A;** LABEL A; %let lab2 = Circle+B; ** LABEL B; %let lab3 = Circle+C; ** LABEL C; %let widt = 300; ** WIDTH IN DPI; %let heig = 300; ** HEIGHT IN DPI; %let size = &widt.x&heig.; ** WIDTHxHEIGHT; %let lege = t; ** LEGEND t=top; %let titl = Venn+Diagram; ** TITLE; %let mar1 = 5; ** MARGIN LEFT; %let mar2 = 5; ** MARGIN RIGHT; %let mar3 = 5; ** MARGIN TOP; %let mar4 = 5; ** MARGIN BOTTOM;

14 Venn Diagrams Using Google and SAS ® %let type = v; ** CHART TYPE v=venn; %let col1 = FF6342;** A COLOR; %let col2 = ADDE63;** B COLOR; %let col3 = 63C6DE;** C COLOR; %let dat1 = 35; ** SIZE OF A; %let dat2 = 30; ** SIZE OF B; %let dat3 = 15; ** SIZE OF C; %let dat4 = 8; ** A+B OVERLAP; %let dat5 = 5; ** A+C OVERLAP; %let dat6 = 3; ** B+C OVERLAP; %let dat7 = 4; ** A+B+C OVERLAP; %let lab1 = Circle+A;** LABEL A; %let lab2 = Circle+B; ** LABEL B; %let lab3 = Circle+C; ** LABEL C; %let widt = 300; ** WIDTH IN DPI; %let heig = 300; ** HEIGHT IN DPI; %let size = &widt.x&heig.; ** WIDTHxHEIGHT; %let lege = t; ** LEGEND t=top; %let titl = Venn+Diagram; ** TITLE; %let mar1 = 5; ** MARGIN LEFT; %let mar2 = 5; ** MARGIN RIGHT; %let mar3 = 5; ** MARGIN TOP; %let mar4 = 5; ** MARGIN BOTTOM;

15 References  Azimaee, Mahmoud. KML Macro: Integrating SAS ® and Google API and Its Application in Mapping Manitoba's Health Data on Google Earth and Google Map. SAS Global Forum  Google Chart Tools / Interactive charts (aka Visualization API) Query Language Reference (Version 0.7). Available online: ml#plainText  Harris, Kriss. How To Generate 2, 3 and 4 Way Venn Diagrams with Drill Down Functionality within 4 minutes! SAS Global Forum  Li, Shiqun (Stan). Using SAS ® to Create Proportional Venn Diagrams. SAS Global Forum 2009  Massengill, Darrell. Google Maps and SAS/Graph ®.. SAS Global Forum  Roehl, William G. Bridging the Gap between the Google Analytics API and SAS ®. SAS Global Forum 2010.

16 Contact Information Hillary Kruger 3040 E. Cornwallis Road Cox 220 Durham, NC Phone: (919)


Download ppt "Creating Proportional Venn Diagrams Using Google and SAS ® Hillary Kruger, RTI International, USA."

Similar presentations


Ads by Google