Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: Venn diagrams


From   David Elliott <dcelliott@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: RE: Venn diagrams
Date   Fri, 22 Oct 2010 23:11:55 -0300

Having not been able to connect to Philip's link, I searched for an
alternate tool and discovered Google's charting API which recreated my
previous Venn with the following url code:
http://chart.apis.google.com/chart
   ?chf=bg,s,EFEFEF|c,s,FFFFFF
   &chs=300x225
   &cht=v
   &chco=FFFF42,FF0000,3366CC
   &chd=t:54.2,34.9,32.1,29.6,29.8,23.4,21.9
   &chdl=Alc|Tob|Can
   &chma=10,10,10,10
   &chtt=Alcohol%2C+Tobacco+and+Cannabis+Use
(reconstitute the URL by removing the breaks before the '?' and '&')

The string t:54.2,34.9,32.1,29.6,29.8,23.4,21.9 is simply the data for
the size of the circles followed by the combined proportions in the
following order: A,B,C,AB,AC,BC,ABC

Part of the beauty of this is that one could write a Stata routine to
append the necessary measurements and then shell to a web browser with
the resultant URL string.

DC Elliott
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index