[R] surface contour plot help
Greg Snow
Greg.Snow at imail.org
Wed Dec 17 16:09:40 CET 2008
Look at rotate.wireframe in the TeachingDemos package.
Hope this helps,
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Brad B
> Sent: Tuesday, December 16, 2008 3:05 PM
> To: r-help at 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 at 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]]
More information about the R-help
mailing list