[R] 3d plotting

From: Brad B <the13thday_at_yahoo.com>
Date: Tue, 18 Dec 2007 11:32:55 -0800 (PST)


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", header=TRUE) library(rgl)
plot3d(td,contractdate,price)    

  the 3 csv data files have the following format,   1
  2
  3
  4
  5
  6
  ...
  60,000    

  basically I have 3 columns, x y and z that have 60000 rows (data points) I want to plot.            


        [[alternative HTML version deleted]]



R-help_at_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. Received on Tue 18 Dec 2007 - 19:36:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 18 Dec 2007 - 20:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.