[R] 3d plotting

2007-12-18 Thread Brad B
I am trying to dp a 3d plot. I tried persp but my data is not a matrix. the 3dplot function returns this error, (list) object cannot be coerced to 'double' heres my code, td<-read.csv("td.csv", header=TRUE) price<-read.csv("price.csv", header=TRUE) contractdate<-read.csv("contractdate.csv"

Re: [R] 3d plotting

2007-12-18 Thread Brad B
that worked. however Im trying to get a surface countour like persp() would show. Since I dont have a matrix data set, I assumed that the wireframe function would do. since I get an error using wireframe, no applicable method for "wireframe" I am using this plot3d. I was under the impres

[R] plot3d, wireframe, persp help

2007-12-20 Thread Brad B
Hello, I am trying to get a surface plot of a data set that looks like the following, 1 2 5.6 5 9 2.4 9 8 9.8 ... to (60,000 rows down) From my homework, the persp function only works with evenly spaced data points with the z data beeing in a matrix. my data is not in that f

Re: [R] surface contour plot help

2008-12-16 Thread Brad B
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  

Re: [R] surface contour plot help

2008-12-18 Thread Brad B
.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 Beha

[R] surface contour plot help

2008-12-16 Thread Brad B
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 funtio