From: Joe Byers <joe-byers_at_utulsa.edu>

Date: Tue 03 Oct 2006 - 15:31:19 GMT

> There are lots of ways to override it: as the docs say, rgl.surface

*> is more flexible than surface3d, and you can draw triangles or quads
*

*> arbitrarily. What sort of thing do you want to do?
*

>

> Duncan Murdoch

R-help@stat.math.ethz.ch 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 Wed Oct 04 01:36:47 2006

Date: Tue 03 Oct 2006 - 15:31:19 GMT

I wish I could create a self contained example of the problem, but I can't.

Here is my code

library(rgl);

#set x and z vectors

x<-as.numeric(as.date(rownames(calday.1),order='ymd'));
z<-as.numeric(colnames(a)[1:ncurve]); #only use the portion of the curve
with data, exclude NaN's

res<-par3d('zoom'=5);

#attempt to set the image/window size, constrained to 0,0,256,256 wish I could change this to 0,0,640,640

res<- rotationMatrix(pi,0, 1, 0) # attempt to set rotation, does not
make a difference

#create a x labels vectors that somewhat matches in the image, trial and
error here

labels<-as.character(as.date(x))# could just use rownames(calday.1)
labels<-labels[c(1,n%/%6,n%/%4,n%/%3,n%/%2,(n*2)%/%3,(n*3)%/%4,(n*5)%/%6,n)]

rgl.surface(x,z,y,ylim=c(0,max(ez[,,i])),back='lines',color=col) title3d(xlab='Date',zlab='Contract Month');#,ylab='Price $'); #sub='Forward curve Trajectory 1', axis3d('x--',labels=labels,nticks=9) axis3d('y+-',labels=labelsy,nticks=8) axis3d('z--',labels=as.character(z),nticks=ncurve);

Thank you

Joe

Duncan Murdoch wrote:

> Joe Byers wrote:

>> The documentation for surface3d and rgl.surface in the package RGL >> states >> "'surface3d' always draws the surface with the `front' upwards >> (i.e. towards higher 'z' values). This can be used to render the >> top and bottom differently; see 'rgl.material' and the example >> below." >> >> Is there a way to override this default? I have search all the >> related methods help and the documents on RGL's website.

> There are lots of ways to override it: as the docs say, rgl.surface

>

> Duncan Murdoch

R-help@stat.math.ethz.ch 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 Wed Oct 04 01:36:47 2006

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.1.8, at Tue 03 Oct 2006 - 18:30:06 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.
*