Hi , I wanted to know it is possible to do 3D plotting with R. If it is possible what shall I do? * Are there special packages to install? * Where can I find them? Thanks a lot for your help -------------- next part -------------- An HTML attachment was scrubbed... URL: https://stat.ethz.ch/pipermail/r-help/attachments/20000526/d179d2f0/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: karamian.vcf Type: text/x-vcard Size: 331 bytes Desc: Card for karamian Url : https://stat.ethz.ch/pipermail/r-help/attachments/20000526/d179d2f0/karamian.vcf
Karamian, R provides the possibility of perspective plots, which are one kind of 3D graphics. Look at the documentation for "persp()", or just type "example(persp)". On the other hand there is a extremely powerful software package named "xgobi" which can do a lot of (dynamic) 3D plotting. You will find it at http://www.research.att.com/areas/stat/xgobi. There is a R interface to xgobi available from CRAN. I had (and still have) some problems with building the newest xgobi version from source. It seems to be a bit sophisticated concerning the libraries on my system. So when you are using linux, I think you should make sure that you don''t have a too old distrbution. Good luck ... Uli Flenker Institute of Biochemistry German Sports University Cologne Carl-Diem-Weg 6 50933 Cologne / Germany Phone 0049/0221/4982-493 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
karamian wrote:> Hi , > > I wanted to know it is possible to do 3D plotting with R.What kind of 3D plotting? If you mean 3D scatterplot, Uwe Ligges has a packge which can be downloaded from http://www.statistik.uni-dortmund.de/leute/ligges.htm If you mean contour or perspective 3D drawing, have a look at help(persp), or:> ?perspThis is all I can suggest from your description, since I''m not quite sure as to what "kind" of 3D plotting you are talking about, if you know what I mean... Cheers, Ko-Kang> > > If it is possible what shall I do? > > > * Are there special packages to install? > * Where can I find them? > > Thanks a lot for your help-- ----------------------------------------------------------------------------------- Ko-Kang Wang Undergraduate Student Computer Science/Statistics Double Major University of Auckland Auckland 1005 New Zealand ----------------------------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
One way to do 3-D plotting was just told to me by Kaspar Pflugshaupt, in response to my earlier question about parallel coordinate displays. It is to get the xgobi package. There are two parts to it. One is the R package, which you get from CRAN, under "Contributed code." You download this and install it according to the directions for installing packages. (For me, that was simply "R INSTALL xgobi" on the linux command line.) But that is just the R interface. You also need xgobi itself. The web page for it is http://lib.stat.cmu.edu/general/XGobi/ This does 3-D graphs, rotations, etc. Very nice. Only the newer versions do parallel coodinate displays. Unfortunately for me, the rpm for Linux that exists in http://www.rpmfind.net/linux/RPM/ is out of date and does not include this, so I will have to install the newer version by hand. Haven''t done this yet. But I have installed the RPM, and it does work very nicely. Of course, on the R command line, you have to say library(xgobi) and then the command to invoke it is xgobi(matrix) where "matrix" is the data set you want to display. Jon -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1224 bytes Desc: not available Url : https://stat.ethz.ch/pipermail/r-help/attachments/20000526/edc0c3d1/attachment.bin
I had a look at your ps file and I''m not sure whether persp() can do it or not. I would suspect Uwe Ligges scatterplot3d can do it, give it a try. Alternatively you can send the file into R list and see if anyone knows how to plot that. Cheers, Ko-Kang karamian wrote:> Ko-Kang Wang wrote: > > > karamian wrote: > > > > > Hi , > > > > > > I wanted to know it is possible to do 3D plotting with R. > > > > What kind of 3D plotting? > > If you mean 3D scatterplot, Uwe Ligges has a packge which can be > > downloaded from http://www.statistik.uni-dortmund.de/leute/ligges.htm > > > > If you mean contour or perspective 3D drawing, have a look at > > help(persp), or: > > > ?persp > > > > This is all I can suggest from your description, since I''m not quite > > sure as to what "kind" of 3D plotting you are talking about, if you know > > what I mean... > > > > Cheers, > > > > Ko-Kang > > > > > > > > > > > If it is possible what shall I do? > > > > > > > > > * Are there special packages to install? > > > * Where can I find them? > > > > > > Thanks a lot for your help > > > > -- > > ----------------------------------------------------------------------------------- > > > > Ko-Kang Wang > > Undergraduate Student > > Computer Science/Statistics Double Major > > University of Auckland > > Auckland 1005 > > New Zealand > > ----------------------------------------------------------------------------------- > > In fact, I ''ve got a file with datas. first colum concen x_axis_data, second colum > y_axis_data and the third one z_aris_data. I want to plot this dats in 3Dimensional > plot, and project these datas on the three planes that are X-Y_palne, X-Z _plane and > Y-Z_plane. And adding other files 3D_plotted too using different colors to distinguish > them. > > Do you thing, that could be possible. > > For Information , I managed to plot these datas without being abble to project them > on X-Y_palne, X-Z _plane and Y-Z_plane using gnuplot. > > So for a better understanding, I attached the figure > > ------------------------------------------------------------------------ > Name: hist3d.moy.ps > hist3d.moy.ps Type: Postscript Document (application/postscript) > Encoding: 7bit-- ----------------------------------------------------------------------------------- Ko-Kang Wang Undergraduate Student Computer Science/Statistics Double Major University of Auckland Auckland 1005 New Zealand ----------------------------------------------------------------------------------- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._