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 on April 23, and its replacement, statalist.org is already up and running.


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

st: RE: Some interesting 3D graphs


From   "Fiedler, James (JSC-SK)[USRA]" <james.fiedler-1@nasa.gov>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Some interesting 3D graphs
Date   Fri, 19 Mar 2010 10:18:36 -0500

Thanks for sending this.  Many of the supplemental materials (direct url: http://pubs.amstat.org/doi/suppl/10.1198/jcgs.2010.191ed) require JavaScript, which is disabled where I am, unfortunately.  

A very long response follows.

They mention two ways of making 3D graphs.  The first requires 
1. writing your object to a common 3D format like .off
2. opening the file with MeshLab (a free modeling program) and converting to .u3d
3. embedding the model in a pdf using LaTeX and the movie15 package.

If you're thinking about doing this, here's my experience: The first version of MeshLab that I got didn't save to u3d correctly.  I downloaded a little newer version of MeshLab a little later, reinstalled, and the problem had been fixed.  Also, besides saving as a u3d I had to explicitly write in the .u3d extension or it didn't save correctly.  Also, make sure all of the files they mention here http://pubs.amstat.org/doi/suppl/10.1198/jcgs.2010.191ed/suppl_file/supplement.pdf are up-to-date.  The LaTeX file ifdraft.sty is found within the oberdiek package.  (A simple google will tell you that, but for some reason it took me a little while to figure it out.)

The second option is to use Asymptote.  This is the method I am using now.  Why:
1. Asymptote allows color and transparency (as they mention)
2. the u3d-through-MeshLab gives a model that hides some portions depending on angle.  
    See http://pubs.amstat.org/doi/suppl/10.1198/jcgs.2010.191ed/suppl_file/supp_g.pdf
    vs http://pubs.amstat.org/doi/suppl/10.1198/jcgs.2010.191ed/suppl_file/supp_j.pdf
3. Asymptote is a general graphing language.  I can add coordinate axes and labels with simple commands.  Also, Asymptote uses LaTeX for labeling, so you can put rendered LaTeX directly in your graph.  (Thus you should have LaTeX installed before installing Asymptote.  I don't think Asymptote even works without some kind of TeX.)

Asymptote has a steep learning curve (for me, at least, possibly because of not having strong programming skills).  

Hence, I am currently working on a Stata program for 3D graphing using Asymptote.  Essentially what I am doing is translating Stata syntax into Asymptote syntax, so that you could make Asymptote graphs without having to learn any of the Asymptote language.  The program will hopefully also automate part of the process of getting the 3d model into a pdf.

James

________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] On Behalf Of Kieran McCaul [Kieran.McCaul@uwa.edu.au]
Sent: Thursday, March 18, 2010 8:33 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Some interesting 3D graphs

.....

Some of this stuff looks interesting.  The animations are in pdfs files
in the supplementary materials.


Levine RA, Tierney L, Wickham H, Sampson E, Cook D and van Dyk DA
(2010).  Editorial: Publishing Animations, 3D Visualizations, and Movies
in JCGS.  Journal of Computational and Graphical Statistics 19(1): 1-2.

http://pubs.amstat.org/toc/jcgs/19/1




______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2701
Fax: (08) 9224 8009
email: Kieran.McCaul@uwa.edu.au
http://myprofile.cos.com/mccaul
http://www.researcherid.com/rid/B-8751-2008

Epidemiology is so beautiful and provides such an important perspective
on human life and death,
but an incredible amount of rubbish is published.  Richard Peto

________________________________________________________________________
__
IMPORTANT: This email is intended for the use of the individual
addressee(s) named above and may
contain information that is confidential, privileged or unsuitable for
overly sensitive persons with low
self-esteem, no sense of humour or irrational religious beliefs. If you
are not the intended recipient,
any dissemination, distribution or copying of this email is not
authorised (either explicitly or implicitly)
and constitutes an irritating social faux pas.



*
*   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/

*
*   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