that was able to work. Thank you! its a little "clumsy" in getting a certain view, but you can get to it eventually. Is their a way to do it with plot3d so that you can use the mouse to rotate the surface plot around? Brad Date: Wednesday, December 17, 2008, 10:09 AM
Look at rotate.wireframe in the TeachingDemos package. Hope this helps, -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Brad B > Sent: Tuesday, December 16, 2008 3:05 PM > To: r-help@r-project.org > Subject: Re: [R] surface contour plot help > > I was able to get a surface plot with wireframe, however I cant rotate > it around like you can with the plot3d function? > Is thier a way to do this in R? > > > > > To: r-help@r-project.org > Date: Tuesday, December 16, 2008, 9:13 AM > > > > > > > > I am trying to do a surface profile plot. > data is > X Y(1) Z(1) > 1-jan-02 2002 number > 2-jan-02 2002 number > . > . > . > 1-jan-03 2003 (Y2) number Z(2) > 2-jan-03 2003 (Y2) number Z(2) > . > . > . > until dec 31 2007. > > I used the plot3d funtions to build a scatter point plot. > Call rinterface.rrun("library(rgl)") > Call > rinterface.rrun("plot3d(x,y1,z1,xlab='Date',ylab='Year',zlab='Vol',ylim > =c(2001,2008))") > Call rinterface.rrun("plot3d(x,y2,z2,add=TRUE)") > Call rinterface.rrun("plot3d(x,y3,z3,add=TRUE)") > Call rinterface.rrun("plot3d(x,y4,z4,add=TRUE)") > Call rinterface.rrun("plot3d(x,y5,z5,add=TRUE)") > Call rinterface.rrun("plot3d(x,y6,z6,add=TRUE)") > > Is thier a way to lay a surface to this? > > > > > > [[alternative HTML version deleted]] [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.