Re: [R] 3d plotting

From: Scionforbai <>
Date: Tue, 18 Dec 2007 20:58:54 +0100

> 60,000

I hope that you actually haven't got any comma to separate the thousands... it separates fields in a csv files (as the "Comma Separated Values" name may suggest). If so, get rid of the commas.

> the 3dplot function returns this error,
> (list) object cannot be coerced to 'double'

> td<-read.csv("td.csv", header=TRUE)
> price<-read.csv("price.csv", header=TRUE)
> contractdate<-read.csv("contractdate.csv", header=TRUE)

You have to coerce the 1-column dataframes created by read.csv to numeric vectors or to a 60000x3 dataframe. solution 1:

myData <- cbind(td,contractdate,price)

> library(rgl)


solution 2:

td <- as.numeric(td)
price <- as.numeric(price)


ScionForbai mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 18 Dec 2007 - 20:02:13 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 - 21:30:19 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.