Re: [R] how to draw manifold?

2010-11-21 Thread baptiste auguie
Hi, I'm joining in with a question -- is it possible to vary the color of the lines along z? The 'colors' argument doesn't seem to allow a vector in this situation. Thanks, baptiste On 21 November 2010 21:02, Carl Witthoft c...@witthoft.com wrote: Thanks, Dennis.   Here's an enhanced

Re: [R] how to draw manifold?

2010-11-21 Thread David Winsemius
On Nov 21, 2010, at 3:42 PM, baptiste auguie wrote: Hi, I'm joining in with a question -- is it possible to vary the color of the lines along z? The 'colors' argument doesn't seem to allow a vector in this situation. This section of the code (which appears fairly close to the beginning,

Re: [R] how to draw manifold?

2010-11-21 Thread Carl Witthoft
Thanks, Dennis. Here's an enhanced version: z - seq(-10, 10, 0.1) zm-cbind(z,z,z,z,z,z,z,z,z,z) ym-matrix(nr=201,nc=10) for (i in seq(1,201)) { for (j in seq(1,10)) ym[i,j]-j/10*sin(zm[i,1])} xm-matrix(nr=201,nc=10) for (i in seq(1,201)) { for (j in seq(1,10))

[R] how to draw manifold?

2010-11-20 Thread Carl Witthoft
Hi, I need some help either in how to configure variables for wireframe(), or some suggestions as to other graphics commands to use for plotting a 2-D manifold in 3-D space. Here is an example I tried (in the hopes that it would plot a helical line) : xsp-matrix(c(cos(seq(0,80)/5)),9,9)

Re: [R] how to draw manifold?

2010-11-20 Thread Dennis Murphy
Hi: Here's an example stolen out of the scatterplot3d package vignette (p. 9): library(scatterplot3d) z - seq(-10, 10, 0.01) x - cos(z) y - sin(z) scatterplot3d(x, y, z, highlight.3d = TRUE, col.axis = 'blue', col.grid = 'lightblue', main = 'Helix', pch = 20) HTH, Dennis On Sat,